diff options
author | Matthew Lemon <y@yulqen.org> | 2024-07-29 15:18:29 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-07-29 15:18:29 +0100 |
commit | ed05d376b79bdac7e3809193025ac6da7261113e (patch) | |
tree | 3c325a0d674b763e077679e311ac76ef94dcfcc1 /pyblackbird_cc/resources/models.py | |
parent | b059587e61cef2d20fb2614aea21685ff4c1b9ce (diff) |
wip: creating a multiple choice field for additional categories
Diffstat (limited to 'pyblackbird_cc/resources/models.py')
-rw-r--r-- | pyblackbird_cc/resources/models.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pyblackbird_cc/resources/models.py b/pyblackbird_cc/resources/models.py index 6b0a9b0..d302ae6 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.ForeignKey( + additional_resource_category = models.ManyToManyField( "ResourceCategory", - on_delete=models.CASCADE, null=True, blank=True, related_name="additional_resource_category", |