aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/assessments
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/assessments')
-rw-r--r--ctrack/assessments/migrations/0003_auto_20200315_1651.py24
-rw-r--r--ctrack/assessments/models.py6
2 files changed, 29 insertions, 1 deletions
diff --git a/ctrack/assessments/migrations/0003_auto_20200315_1651.py b/ctrack/assessments/migrations/0003_auto_20200315_1651.py
new file mode 100644
index 0000000..2ac72fc
--- /dev/null
+++ b/ctrack/assessments/migrations/0003_auto_20200315_1651.py
@@ -0,0 +1,24 @@
+# Generated by Django 2.2.9 on 2020-03-15 16:51
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('assessments', '0002_auto_20200315_1617'),
+ ]
+
+ operations = [
+ migrations.RenameField(
+ model_name='cafcontributingoutcome',
+ old_name='descriptor',
+ new_name='name',
+ ),
+ migrations.AddField(
+ model_name='cafcontributingoutcome',
+ name='description',
+ field=models.TextField(default='', max_length=1000),
+ preserve_default=False,
+ ),
+ ]
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):
"""