From dcefb7dfc5b171fcc18fb0adf11a49cb39ff2c6b Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 28 Jul 2024 16:31:21 +0100 Subject: Added border and badge colour based on category - You have to define them on the ResourceCategory model in the database --- 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 912cd17..6b0a9b0 100644 --- a/pyblackbird_cc/resources/models.py +++ b/pyblackbird_cc/resources/models.py @@ -115,6 +115,7 @@ class ResourceCategory(models.Model): 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) + badge_foreground_colour = models.CharField(max_length=56, blank=True, null=True) class Meta: verbose_name_plural = "Resource Categories" -- cgit v1.2.3