diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-03-15 17:12:21 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-03-15 17:12:21 +0000 |
commit | 88d17e3ae1fa451a3d20c753e22cbab3f5025a5d (patch) | |
tree | c7c7013faceaaad14f429a98195b6e1145585f20 /ctrack/assessments | |
parent | 6be79d66aabffc4b07d5a339a16a02f0d9556296 (diff) |
added all Principle A Contributing Outcomes to populate script
Diffstat (limited to '')
-rw-r--r-- | ctrack/assessments/migrations/0003_auto_20200315_1651.py | 24 | ||||
-rw-r--r-- | ctrack/assessments/models.py | 6 |
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): """ |