aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-05-15 21:02:51 +0100
committerMatthew Lemon <y@yulqen.org>2024-05-15 21:02:51 +0100
commitc20c72522539b794747c95a2b3d4f9b25a763f21 (patch)
tree2c0daebac51f8d54be232a0ac5a6d8ce401adac1 /pyblackbird_cc/resources/models.py
parentae42defca04b78516712c64be27ee5f91e1da03d (diff)
Fix additional resource field in update form
Diffstat (limited to 'pyblackbird_cc/resources/models.py')
-rw-r--r--pyblackbird_cc/resources/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyblackbird_cc/resources/models.py b/pyblackbird_cc/resources/models.py
index b11bcb9..6a279dd 100644
--- a/pyblackbird_cc/resources/models.py
+++ b/pyblackbird_cc/resources/models.py
@@ -36,6 +36,7 @@ class Resource(models.Model):
"ResourceCategory",
on_delete=models.CASCADE,
null=True,
+ blank=True,
related_name="additional_resource_category",
)
description = models.TextField(max_length=1000, null=False, blank=False)
@@ -48,7 +49,6 @@ class Resource(models.Model):
)
curriculum = models.CharField(
max_length=20,
- null=True,
default="English",
blank=True,
choices=[