From 74ed83a719a8f34c3e989b84c96f6759ea2f182c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 14 Aug 2020 15:27:56 +0100 Subject: list of other systems on form to add system for org --- .../caf/templates/caf/applicable_system_create_from_org.html | 10 +++++++--- ctrack/organisations/models.py | 3 +-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ctrack/caf/templates/caf/applicable_system_create_from_org.html b/ctrack/caf/templates/caf/applicable_system_create_from_org.html index 8a94155..e4d3efa 100644 --- a/ctrack/caf/templates/caf/applicable_system_create_from_org.html +++ b/ctrack/caf/templates/caf/applicable_system_create_from_org.html @@ -32,9 +32,13 @@
Other systems managed by {{ organisation.name }}:
diff --git a/ctrack/organisations/models.py b/ctrack/organisations/models.py index d7f1194..9eb0a23 100644 --- a/ctrack/organisations/models.py +++ b/ctrack/organisations/models.py @@ -153,8 +153,7 @@ class Organisation(models.Model): return self.person_set.filter(primary_nis_contact=True) def applicable_systems(self): - # TODO - we need to do this - pass + return self.applicablesystem_set.all() class Address(models.Model): -- cgit v1.2.3