aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-07-28 16:31:21 +0100
committerMatthew Lemon <y@yulqen.org>2024-07-28 16:31:21 +0100
commitdcefb7dfc5b171fcc18fb0adf11a49cb39ff2c6b (patch)
tree30ab7f61b83eec73c2195b2b1c7fa99f9e32adea /pyblackbird_cc/resources/models.py
parent2c7dc01e289d39dcaac6761ff59870accc7575a8 (diff)
Added border and badge colour based on category
- You have to define them on the ResourceCategory model in the database
Diffstat (limited to 'pyblackbird_cc/resources/models.py')
-rw-r--r--pyblackbird_cc/resources/models.py1
1 files changed, 1 insertions, 0 deletions
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"