aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/models.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ctrack/caf/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ctrack/caf/models.py b/ctrack/caf/models.py
index b488962..c290ee3 100644
--- a/ctrack/caf/models.py
+++ b/ctrack/caf/models.py
@@ -74,4 +74,6 @@ class CAF(models.Model):
verbose_name = "CAF"
def __str__(self):
- return f"CAF | {self.owner}"
+ # Get the organisation and applicable system
+ org = ApplicableSystem.objects.filter(caf=self).first()
+ return f"CAF | {org.name}"