diff options
author | Matthew Lemon <y@yulqen.org> | 2024-07-11 17:20:29 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-07-11 17:20:29 +0100 |
commit | 8547f307748554990ee3cc413776c7dadc830764 (patch) | |
tree | be9d05ae6d9c8f4d792923f68d6719b1b64be166 /pyblackbird_cc/resources/models.py | |
parent | 375aec43a2badc5eef86d528745908cb2f572bb7 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | pyblackbird_cc/resources/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
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" |