diff options
Diffstat (limited to '')
-rw-r--r-- | ctrack/caf/views.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ctrack/caf/views.py b/ctrack/caf/views.py index 4bcfe61..9a5cb64 100644 --- a/ctrack/caf/views.py +++ b/ctrack/caf/views.py @@ -1,8 +1,9 @@ from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import render -from django.views.generic import ListView, DetailView +from django.views.generic import ListView, DetailView, CreateView from ctrack.assessments.models import CAFAssessmentOutcomeScore +from ctrack.caf.forms import ApplicableSystemCreateForm from ctrack.caf.models import ApplicableSystem, CAF @@ -49,3 +50,9 @@ class ListApplicableSystem(LoginRequiredMixin, ListView): class ApplicableSystemDetail(LoginRequiredMixin, DetailView): model = ApplicableSystem template_name = "caf/applicablesystem_detail.html" + + +class ApplicableSystemCreate(LoginRequiredMixin, CreateView): + form_class = ApplicableSystemCreateForm + model = ApplicableSystem + template_name = "caf/applicablesystem_create.html" |