diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-04-16 15:02:40 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-04-16 15:02:40 +0100 |
commit | 7d13d652b741bee7390c39d6e27f4e6f9d909442 (patch) | |
tree | 781adeeb159a5418596db2b2bd199b2ec205204a /ctrack/caf/views.py | |
parent | 82fa2dabf282971a81ee16858aa5513c51cb7d56 (diff) |
removed CAFCreate form view and template - we're not doing that outside admin
Diffstat (limited to 'ctrack/caf/views.py')
-rw-r--r-- | ctrack/caf/views.py | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/ctrack/caf/views.py b/ctrack/caf/views.py index 7e5e510..c33b2d1 100644 --- a/ctrack/caf/views.py +++ b/ctrack/caf/views.py @@ -3,26 +3,15 @@ from django.shortcuts import render from django.views.generic import CreateView, ListView, DetailView from ctrack.assessments.models import CAFAssessment, CAFObjective, CAFPrinciple, CAFAssessmentOutcomeScore -from ctrack.caf.forms import CAFCreateForm from ctrack.caf.models import ApplicableSystem, CAF -class CreateCAF(LoginRequiredMixin, CreateView): - form_class = CAFCreateForm - template_name = "caf/caf_create.html" - - def get_context_data(self, **kwargs): - context = super().get_context_data(**kwargs) - context['form'] = self.form_class - return context - - -class ListCAF(LoginRequiredMixin, ListView): - pass - - -# class DetailCAF(LoginRequiredMixin, DetailView): +# class ListCAF(LoginRequiredMixin, ListView): # model = CAF +# paginate_by = 20 + +# def get_context_data(self, **kwargs): +# return super().get_context_data(**kwargs) # Let's write a traditional function view! def caf_detail_view(request, pk): |