diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-03-04 19:31:52 +0000 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-03-04 19:31:52 +0000 |
commit | 4c3a0d5808054456f5a90c13d8af62f334e7e031 (patch) | |
tree | 69c9222f64ca1112bd511637228d394d42f46ae2 /ctrack/caf/views.py | |
parent | ec21e940b9bbfa235961be630dec8547f81396ce (diff) |
renamed EssentialService to ApplicableSystem and a few other tweaks
Diffstat (limited to '')
-rw-r--r-- | ctrack/caf/views.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ctrack/caf/views.py b/ctrack/caf/views.py index f7863d9..c90cb76 100644 --- a/ctrack/caf/views.py +++ b/ctrack/caf/views.py @@ -1,7 +1,7 @@ from django.views.generic import CreateView, ListView from ctrack.caf.forms import CAFForm -from ctrack.caf.models import EssentialService +from ctrack.caf.models import ApplicableSystem class CreateCAF(CreateView): @@ -18,15 +18,15 @@ class ListCAF(ListView): pass -class ListEssentialService(ListView): - model = EssentialService +class ListApplicableSystem(ListView): + model = ApplicableSystem # TODO - add primary_nis_contact tick to the context # Context can be easily found with: # org.person_set.filter(primary_nis_contact=True) or similar def get_queryset(self): - ess = EssentialService.objects.all().order_by("organisation__name") + ess = ApplicableSystem.objects.all().order_by("organisation__name") return ess def get_context_data(self, **kwargs): |