From 5a955f9796c199338eb3182f1918c4708593a1be Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 13 Aug 2020 11:49:04 +0100 Subject: changed description field to funciton in ApplicableSystem --- ctrack/caf/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ctrack/caf/views.py') diff --git a/ctrack/caf/views.py b/ctrack/caf/views.py index 7345319..258774e 100644 --- a/ctrack/caf/views.py +++ b/ctrack/caf/views.py @@ -76,7 +76,7 @@ def applicable_system_create_from_caf(request, caf_id): if form.is_valid(): ApplicableSystem.objects.create( name=form.cleaned_data["name"], - description=form.cleaned_data["description"], + function=form.cleaned_data["function"], caf=form.cleaned_data["caf"], organisation=form.cleaned_data["organisation"], ) @@ -106,7 +106,7 @@ class ApplicableSystemCreateFromOrg( def form_valid(self, form): ass = ApplicableSystem.objects.create( name=form.cleaned_data["name"], - description=form.cleaned_data["description"], + function=form.cleaned_data["function"], organisation=form.cleaned_data["organisation"], caf=form.cleaned_data["caf"], ) -- cgit v1.2.3