diff options
author | Matthew Lemon <y@yulqen.org> | 2024-08-01 16:17:23 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-08-01 16:17:23 +0100 |
commit | bad2be31054ff5277b97230b5157edf6a8dd06cc (patch) | |
tree | dc9072a73d586fb00671f742a2e9054fec37f230 /pyblackbird_cc/resources/migrations | |
parent | 5f37a5839ff00f4f85c5e63e4dcb8246204c9386 (diff) |
Fix bug where new subcategories were being created on selection
Diffstat (limited to 'pyblackbird_cc/resources/migrations')
-rw-r--r-- | pyblackbird_cc/resources/migrations/0017_rename_additional_resource_category_resource_subcategories.py | 18 | ||||
-rw-r--r-- | pyblackbird_cc/resources/migrations/0018_alter_resource_subcategories.py | 25 |
2 files changed, 43 insertions, 0 deletions
diff --git a/pyblackbird_cc/resources/migrations/0017_rename_additional_resource_category_resource_subcategories.py b/pyblackbird_cc/resources/migrations/0017_rename_additional_resource_category_resource_subcategories.py new file mode 100644 index 0000000..bc4d1e4 --- /dev/null +++ b/pyblackbird_cc/resources/migrations/0017_rename_additional_resource_category_resource_subcategories.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.4 on 2024-08-01 14:29 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("resources", "0016_alter_resourcesubcategory_options_and_more"), + ] + + operations = [ + migrations.RenameField( + model_name="resource", + old_name="additional_resource_category", + new_name="subcategories", + ), + ] diff --git a/pyblackbird_cc/resources/migrations/0018_alter_resource_subcategories.py b/pyblackbird_cc/resources/migrations/0018_alter_resource_subcategories.py new file mode 100644 index 0000000..c981512 --- /dev/null +++ b/pyblackbird_cc/resources/migrations/0018_alter_resource_subcategories.py @@ -0,0 +1,25 @@ +# Generated by Django 5.0.4 on 2024-08-01 15:08 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ( + "resources", + "0017_rename_additional_resource_category_resource_subcategories", + ), + ] + + operations = [ + migrations.AlterField( + model_name="resource", + name="subcategories", + field=models.ManyToManyField( + blank=True, + related_name="additional_resource_category", + to="resources.resourcesubcategory", + ), + ), + ] |