diff options
author | Matthew Lemon <y@yulqen.org> | 2024-05-15 16:28:41 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-05-15 16:28:41 +0100 |
commit | cf0ceb545421c58acc9478fc376b51065f97e532 (patch) | |
tree | 26ab2b9eebd6b03febec1bdb498742c50c8b7253 /pyblackbird_cc/resources/models.py | |
parent | 8d1f465ceb2f5e357b19b6e4c8468703725b4795 (diff) |
Basic form to update Resource metadata
Diffstat (limited to 'pyblackbird_cc/resources/models.py')
-rw-r--r-- | pyblackbird_cc/resources/models.py | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/pyblackbird_cc/resources/models.py b/pyblackbird_cc/resources/models.py index 68f0637..b11bcb9 100644 --- a/pyblackbird_cc/resources/models.py +++ b/pyblackbird_cc/resources/models.py @@ -1,5 +1,21 @@ from django.db import models +CURRICULUM_CHOICES = [ + ("No curriculum", "No curriculum"), + ("English", "English"), + ("Scottish", "Scottish"), +] + +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+"), + ("Age not applicable", "Age not applicable"), +] + # Create your models here. class Resource(models.Model): @@ -28,15 +44,7 @@ class Resource(models.Model): null=False, default="5-7", blank=False, - choices=[ - ("3-5", "3-5"), - ("5-7", "5-7"), - ("7-11", "7-11"), - ("11-14", "11-14"), - ("14-16", "14-16"), - ("16+", "16+"), - ("Age not applicable", "Age not applicable"), - ], + choices=AGE_RANGE_CHOICES, ) curriculum = models.CharField( max_length=20, |