aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-07-11 16:35:10 +0100
committerMatthew Lemon <y@yulqen.org>2024-07-11 16:35:10 +0100
commit375aec43a2badc5eef86d528745908cb2f572bb7 (patch)
treea4b5d8c19b51df7328dbd1aa9c839ad19949fa2c /pyblackbird_cc/resources/models.py
parent0309afdf0f8ceb9695e32e6e88b32a603e5a6c04 (diff)
Curriculum is optional and age ranges are fixed
Diffstat (limited to 'pyblackbird_cc/resources/models.py')
-rw-r--r--pyblackbird_cc/resources/models.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/pyblackbird_cc/resources/models.py b/pyblackbird_cc/resources/models.py
index 33fd678..c23fd34 100644
--- a/pyblackbird_cc/resources/models.py
+++ b/pyblackbird_cc/resources/models.py
@@ -7,12 +7,14 @@ CURRICULUM_CHOICES = [
]
AGE_RANGE_CHOICES = [
- ("3-5", "3-5"),
- ("5-7", "5-7"),
- ("7-11", "7-11"),
- ("11-14", "11-14"),
- ("14-16", "14-16"),
- ("16+", "16+"),
+ ("Preschool (3-4yrs)", "Preschool (3-4yrs)"),
+ ("Nursery (2-5yrs)", "Nursery (2-5yrs)"),
+ ("Reception (4-5yrs)", "Reception (4-5yrs)"),
+ ("Year 1 (5-6yrs)", "Year 1 (5-6yrs)"),
+ ("Year 2 (6-7yrs)", "Year 2 (6-7yrs)"),
+ ("Early Years (0-5yrs)", "Early Years (0-5yrs)"),
+ ("Keystage 1 (5-7yrs)", "Keystage 1 (5-7yrs)"),
+ ("Keystage 2 (7-11yrs)", "Keystage 2 (7-11yrs)"),
("Age not applicable", "Age not applicable"),
]
@@ -74,6 +76,7 @@ class Resource(models.Model):
max_length=20,
default="English",
blank=True,
+ null=True,
choices=[
("No curriculum", "No curriculum"),
("English", "English"),