aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyblackbird_cc/resources/models.py')
-rw-r--r--pyblackbird_cc/resources/models.py26
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,