aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-08-01 16:17:23 +0100
committerMatthew Lemon <y@yulqen.org>2024-08-01 16:17:23 +0100
commitbad2be31054ff5277b97230b5157edf6a8dd06cc (patch)
treedc9072a73d586fb00671f742a2e9054fec37f230 /pyblackbird_cc/resources/models.py
parent5f37a5839ff00f4f85c5e63e4dcb8246204c9386 (diff)
Fix bug where new subcategories were being created on selection
Diffstat (limited to 'pyblackbird_cc/resources/models.py')
-rw-r--r--pyblackbird_cc/resources/models.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pyblackbird_cc/resources/models.py b/pyblackbird_cc/resources/models.py
index a03992b..05a848c 100644
--- a/pyblackbird_cc/resources/models.py
+++ b/pyblackbird_cc/resources/models.py
@@ -45,9 +45,8 @@ class Resource(models.Model):
null=False,
related_name="main_resource_category",
)
- additional_resource_category = models.ManyToManyField(
+ subcategories = models.ManyToManyField(
"ResourceSubcategory",
- null=True,
blank=True,
related_name="additional_resource_category",
)