From bad2be31054ff5277b97230b5157edf6a8dd06cc Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 1 Aug 2024 16:17:23 +0100 Subject: Fix bug where new subcategories were being created on selection --- ...nal_resource_category_resource_subcategories.py | 18 ++++++++++++++++ .../0018_alter_resource_subcategories.py | 25 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 pyblackbird_cc/resources/migrations/0017_rename_additional_resource_category_resource_subcategories.py create mode 100644 pyblackbird_cc/resources/migrations/0018_alter_resource_subcategories.py (limited to 'pyblackbird_cc/resources/migrations') 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", + ), + ), + ] -- cgit v1.2.3