diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-03-04 20:26:01 +0000 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-03-04 20:26:01 +0000 |
commit | 785f5d8d12a524b557d83621ecf0ab19f881b336 (patch) | |
tree | 0b4e7e0095d34ffb11444657d0511cacbf230cb5 /ctrack/caf/models.py | |
parent | 11834a2580344b90126f3c25b89f18104b3d3ed9 (diff) |
we now create one caf and one applicable service for each organisaton
Diffstat (limited to '')
-rw-r--r-- | ctrack/caf/models.py | 4 |
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}" |