diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-03-24 20:37:52 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-03-24 20:37:52 +0000 |
commit | 33a612d7b1c0cfedce59b6efd74b98d9f3fecaf6 (patch) | |
tree | 403aa0342b6ac9e38ca93fc90f393f3b17354e02 /ctrack/assessments | |
parent | 456da293617ebed027ac4a35f4dd853854982b29 (diff) |
added verbose names
Diffstat (limited to 'ctrack/assessments')
-rw-r--r-- | ctrack/assessments/models.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/ctrack/assessments/models.py b/ctrack/assessments/models.py index 71525bb..8eb04a3 100644 --- a/ctrack/assessments/models.py +++ b/ctrack/assessments/models.py @@ -78,13 +78,18 @@ class CAFSelfAssessmentOutcomeScore(models.Model): ("Partially Achieved", "Partially Achieved"), ("Not Achieved", "Not Achieved"), ) - caf_self_assessment = models.ForeignKey(CAFSelfAssessment, on_delete=models.CASCADE) - caf_contributing_outcome = models.ForeignKey(CAFContributingOutcome, on_delete=models.CASCADE) - self_assessment_score = models.CharField(max_length=20, choices=ASSESSMENT_SCORE, help_text="Choose an assessment score") - baseline_assessment_score = models.CharField(max_length=20, choices=ASSESSMENT_SCORE, help_text="Choose an assessment score") + caf_self_assessment = models.ForeignKey(CAFSelfAssessment, on_delete=models.CASCADE, + verbose_name="CAF Self Assessment") + caf_contributing_outcome = models.ForeignKey(CAFContributingOutcome, on_delete=models.CASCADE, + verbose_name="CAF Contributing Outcome") + self_assessment_score = models.CharField(max_length=20, choices=ASSESSMENT_SCORE, + help_text="Choose an assessment score", + verbose_name="Self Assessment Score") + baseline_assessment_score = models.CharField(max_length=20, choices=ASSESSMENT_SCORE, + help_text="Choose an assessment score", verbose_name="Baseline Score") class Meta: verbose_name = "CAF Self Assessment Outcome Score" def __str__(self): - return f"{self.caf_self_assessment} | {self.self_assessment_score}" + return f"{self.caf_contributing_outcome} | {self.caf_self_assessment} | {self.self_assessment_score}" |