aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/assessments/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-03-15 17:12:21 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2020-03-15 17:12:21 +0000
commit88d17e3ae1fa451a3d20c753e22cbab3f5025a5d (patch)
treec7c7013faceaaad14f429a98195b6e1145585f20 /ctrack/assessments/models.py
parent6be79d66aabffc4b07d5a339a16a02f0d9556296 (diff)
added all Principle A Contributing Outcomes to populate script
Diffstat (limited to 'ctrack/assessments/models.py')
-rw-r--r--ctrack/assessments/models.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ctrack/assessments/models.py b/ctrack/assessments/models.py
index 1465dbb..b2afd68 100644
--- a/ctrack/assessments/models.py
+++ b/ctrack/assessments/models.py
@@ -55,13 +55,17 @@ class CAFContributingOutcome(models.Model):
One of the 39 as set out in the framework.
"""
designation = models.CharField(max_length=5, help_text="e.g. A1.a, B3.c, etc")
- descriptor = models.CharField(max_length=50, help_text="e.g. Board Direction")
+ name = models.CharField(max_length=50, help_text="e.g. Board Direction")
+ description = models.TextField(max_length=1000)
principle = models.ForeignKey(CAFPrinciple, on_delete=models.CASCADE)
order_id = models.IntegerField()
class Meta:
verbose_name = "CAF Contributing Outcome"
+ def __str__(self):
+ return " ".join([self.designation, self.name])
+
class CAFSelfAssessmentOutcomeScore(models.Model):
"""