diff options
author | MR Lemon <matt@matthewlemon> | 2020-04-16 17:16:00 +0100 |
---|---|---|
committer | MR Lemon <matt@matthewlemon> | 2020-04-16 17:16:00 +0100 |
commit | a78bb6bd4ccd96bbdb153cf9fc1b83632ccaa276 (patch) | |
tree | 99d81f3906d7710072d3a64e054e49753b360ee9 /ctrack/caf/models.py | |
parent | 537370e45631a7fa35ac855e746771ce6ca9224a (diff) |
layout of CAF list
Diffstat (limited to 'ctrack/caf/models.py')
-rw-r--r-- | ctrack/caf/models.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ctrack/caf/models.py b/ctrack/caf/models.py index 5d7b5b0..0151d4b 100644 --- a/ctrack/caf/models.py +++ b/ctrack/caf/models.py @@ -92,7 +92,10 @@ class CAF(models.Model): def organisation(self): first_ass = ApplicableSystem.objects.filter(caf=self).first() return first_ass.organisation - + + def sub_mode(self): + return self.organisation().submode + def __str__(self): # Get the organisation and applicable system ass = ApplicableSystem.objects.filter(caf=self).first() |