aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/views.py
blob: b46360b974ec23b6798df99295b4057b75e1c83d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from django.views.generic import CreateView

from ctrack.caf.forms import CAFForm


class CreateCAF(CreateView):
    form_class = CAFForm
    template_name = "caf/create.html"

    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)
        context['form'] = self.form_class
        return context