aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-08-28 11:25:10 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-08-28 11:25:10 +0100
commit3913f7ead10b6f98c3f9b4e5882336f75b6f1576 (patch)
tree935f6d1f2f73fcd7e2f6e52abed958392a371705 /ctrack/caf
parent5f4e80b9c5c39e6eebb86edce20ffe107c03aa3e (diff)
fixed some more view bugs related to db redesign
Diffstat (limited to 'ctrack/caf')
-rw-r--r--ctrack/caf/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctrack/caf/views.py b/ctrack/caf/views.py
index 4dbde02..aaeb90b 100644
--- a/ctrack/caf/views.py
+++ b/ctrack/caf/views.py
@@ -115,8 +115,8 @@ class ApplicableSystemCreateFromOrg(
def get_form_kwargs(self):
kwargs = super().get_form_kwargs()
org = Organisation.objects.get(slug=self.kwargs["slug"])
- asses = org.applicablesystem_set.all()
- org_cafs = {ass.caf for ass in asses}
+ asses = org.applicable_systems()
+ org_cafs = org.caf_set.all()
kwargs["org_id"] = org.id
kwargs["slug"] = org.slug
kwargs["org_name"] = org.name