aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/caf/views.py')
-rw-r--r--ctrack/caf/views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ctrack/caf/views.py b/ctrack/caf/views.py
index fceb869..5ded2dc 100644
--- a/ctrack/caf/views.py
+++ b/ctrack/caf/views.py
@@ -25,8 +25,7 @@ class ListApplicableSystem(ListView):
template_name = "caf/applicablesystem_list.html"
def get_queryset(self):
- # TODO sort this list using basic Python sorted()
- ess = ApplicableSystem.objects.with_primary_contact() # returns a list, not a QuerySet
+ ess = ApplicableSystem.objects.all().order_by("organisation__name")
return ess
def get_context_data(self, **kwargs):