diff options
author | Matthew Lemon <y@yulqen.org> | 2024-07-29 17:06:29 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-07-29 17:06:29 +0100 |
commit | b3d46f2ddbd7312e731e8a05e09a8b547439b2ff (patch) | |
tree | 70fc0e4487dee1ee2f2febf083f35a7a0a38721e /pyblackbird_cc/resources/migrations/0015_resourcesubcategory.py | |
parent | 914fb4dd4ab8b7e37c67de01d6a42802999553c1 (diff) |
wip: Adds a new model for additional categories
- Adds new ResourceSubcategory
- Uses this for choices= in the Resource form (create)
- Adds this new model to the admin
Doesn't validate in the edit form yet,
Diffstat (limited to 'pyblackbird_cc/resources/migrations/0015_resourcesubcategory.py')
-rw-r--r-- | pyblackbird_cc/resources/migrations/0015_resourcesubcategory.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pyblackbird_cc/resources/migrations/0015_resourcesubcategory.py b/pyblackbird_cc/resources/migrations/0015_resourcesubcategory.py new file mode 100644 index 0000000..3eaada4 --- /dev/null +++ b/pyblackbird_cc/resources/migrations/0015_resourcesubcategory.py @@ -0,0 +1,30 @@ +# Generated by Django 5.0.4 on 2024-07-29 14:55 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("resources", "0014_remove_resource_additional_resource_category_and_more"), + ] + + operations = [ + migrations.CreateModel( + name="ResourceSubcategory", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("name", models.CharField(max_length=255)), + ("created_at", models.DateTimeField(auto_now_add=True)), + ("updated_at", models.DateTimeField(auto_now=True)), + ], + ), + ] |