From 8547f307748554990ee3cc413776c7dadc830764 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 11 Jul 2024 17:20:29 +0100 Subject: Adds ability to add colour class to main category - Creates a new line in the database - Uses this in the template instead of the default bootstrap class --- pyblackbird_cc/resources/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'pyblackbird_cc/resources/models.py') diff --git a/pyblackbird_cc/resources/models.py b/pyblackbird_cc/resources/models.py index c23fd34..912cd17 100644 --- a/pyblackbird_cc/resources/models.py +++ b/pyblackbird_cc/resources/models.py @@ -114,6 +114,7 @@ class ResourceCategory(models.Model): name = models.CharField(max_length=255, null=False) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) + colour_css_class = models.CharField(max_length=56, blank=True, null=True) class Meta: verbose_name_plural = "Resource Categories" -- cgit v1.2.3