From 522ec5ece6f634c9c4cbadc8e758448fd000eb22 Mon Sep 17 00:00:00 2001 From: MR Lemon Date: Mon, 20 Apr 2020 17:22:29 +0100 Subject: quick optimise --- ctrack/caf/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ctrack/caf') diff --git a/ctrack/caf/views.py b/ctrack/caf/views.py index 003cb18..ded9233 100644 --- a/ctrack/caf/views.py +++ b/ctrack/caf/views.py @@ -1,7 +1,7 @@ from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import render from django.urls import reverse_lazy -from django.views.generic import ListView, DetailView, CreateView, FormView +from django.views.generic import ListView, DetailView, FormView from ctrack.assessments.models import CAFAssessmentOutcomeScore from ctrack.caf.forms import ApplicableSystemCreateFromOrgForm @@ -72,7 +72,6 @@ class ApplicableSystemCreateFromOrg(LoginRequiredMixin, FormView): ) return super().form_valid(form) - def get_form_kwargs(self): kwargs = super().get_form_kwargs() org = Organisation.objects.get(slug=self.kwargs["slug"]) -- cgit v1.2.3