aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/assessments/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-04-04 17:12:02 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-04-04 17:12:02 +0100
commit48ea55b603b44f1a4ad0a7ec9f1aeadfa9015b8b (patch)
treed6cb9b938c118d608f8d1b4e1d1b9ee5f4329f5e /ctrack/assessments/models.py
parent3591b1b87793a2734718390691bdde41af1f8bd0 (diff)
partially completed the CAF score detail table
Diffstat (limited to 'ctrack/assessments/models.py')
-rw-r--r--ctrack/assessments/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctrack/assessments/models.py b/ctrack/assessments/models.py
index ab57fd5..db8c8e1 100644
--- a/ctrack/assessments/models.py
+++ b/ctrack/assessments/models.py
@@ -15,6 +15,9 @@ class CAFAssessment(models.Model):
class Meta:
verbose_name = "CAF Assessment"
+ def get_title(self):
+ return f"CAF Assessment for {self.caf.applicable_systems.first().organisation.name} - version {self.caf.version}"
+
def __str__(self):
return f"CAF Assessment for {self.caf.applicable_systems.first().organisation.name} - version {self.caf.version}"