diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-08-28 11:25:10 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-08-28 11:25:10 +0100 |
commit | 3913f7ead10b6f98c3f9b4e5882336f75b6f1576 (patch) | |
tree | 935f6d1f2f73fcd7e2f6e52abed958392a371705 /ctrack/caf | |
parent | 5f4e80b9c5c39e6eebb86edce20ffe107c03aa3e (diff) |
fixed some more view bugs related to db redesign
Diffstat (limited to 'ctrack/caf')
-rw-r--r-- | ctrack/caf/views.py | 4 |
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 |