aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/assessments
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-03-15 16:21:52 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2020-03-15 16:21:52 +0000
commitac87c8494fab9f7cf1c97ec1e5dbe46eb28899de (patch)
tree6af2e75d9a0a8662b8f18d44691038663e8be8f9 /ctrack/assessments
parent536cf89a33c59cff512df6de76cef0a8aa788828 (diff)
can populate four Objectives
Diffstat (limited to 'ctrack/assessments')
-rw-r--r--ctrack/assessments/migrations/0002_auto_20200315_1617.py38
-rw-r--r--ctrack/assessments/models.py5
2 files changed, 42 insertions, 1 deletions
diff --git a/ctrack/assessments/migrations/0002_auto_20200315_1617.py b/ctrack/assessments/migrations/0002_auto_20200315_1617.py
new file mode 100644
index 0000000..4acd7bb
--- /dev/null
+++ b/ctrack/assessments/migrations/0002_auto_20200315_1617.py
@@ -0,0 +1,38 @@
+# Generated by Django 2.2.9 on 2020-03-15 16:17
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('assessments', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.AlterModelOptions(
+ name='cafcontributingoutcome',
+ options={'verbose_name': 'CAF Contributing Outcome'},
+ ),
+ migrations.AlterModelOptions(
+ name='cafobjective',
+ options={'verbose_name': 'CAF Objective'},
+ ),
+ migrations.AlterModelOptions(
+ name='cafprinciple',
+ options={'verbose_name': 'CAF Principle'},
+ ),
+ migrations.AlterModelOptions(
+ name='cafselfassessment',
+ options={'verbose_name': 'CAF Self Assessment'},
+ ),
+ migrations.AlterModelOptions(
+ name='cafselfassessmentoutcomescore',
+ options={'verbose_name': 'CAF Self Assessment Outcome Score'},
+ ),
+ migrations.AlterField(
+ model_name='cafobjective',
+ name='name',
+ field=models.CharField(help_text='e.g. Managing Risk', max_length=100),
+ ),
+ ]
diff --git a/ctrack/assessments/models.py b/ctrack/assessments/models.py
index 35484a8..84e8607 100644
--- a/ctrack/assessments/models.py
+++ b/ctrack/assessments/models.py
@@ -22,13 +22,16 @@ class CAFObjective(models.Model):
"""
One of 4 as set out in the framework...
"""
- name = models.CharField(max_length=20, help_text="e.g. Managing Risk")
+ name = models.CharField(max_length=100, help_text="e.g. Managing Risk")
description = models.TextField(max_length=500)
order_id = models.IntegerField()
class Meta:
verbose_name = "CAF Objective"
+ def __str__(self):
+ return self.name
+
class CAFPrinciple(models.Model):
"""