diff options
author | Matthew Lemon <y@yulqen.org> | 2024-07-28 16:31:21 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-07-28 16:31:21 +0100 |
commit | dcefb7dfc5b171fcc18fb0adf11a49cb39ff2c6b (patch) | |
tree | 30ab7f61b83eec73c2195b2b1c7fa99f9e32adea /pyblackbird_cc/resources/migrations | |
parent | 2c7dc01e289d39dcaac6761ff59870accc7575a8 (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/migrations')
-rw-r--r-- | pyblackbird_cc/resources/migrations/0013_resourcecategory_badge_foreground_colour.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pyblackbird_cc/resources/migrations/0013_resourcecategory_badge_foreground_colour.py b/pyblackbird_cc/resources/migrations/0013_resourcecategory_badge_foreground_colour.py new file mode 100644 index 0000000..7644a5c --- /dev/null +++ b/pyblackbird_cc/resources/migrations/0013_resourcecategory_badge_foreground_colour.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.4 on 2024-07-28 15:12 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("resources", "0012_resourcecategory_colour_css_class"), + ] + + operations = [ + migrations.AddField( + model_name="resourcecategory", + name="badge_foreground_colour", + field=models.CharField(blank=True, max_length=56, null=True), + ), + ] |