diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-27 20:25:04 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-27 20:25:04 +0000 |
commit | dfc5ede55ee0bb70be9f5317324409d5f0eb763a (patch) | |
tree | d245e6fdfb5cfeda72a2e533988f0315fab47073 /ctrack/caf/views.py | |
parent | d0ac61da601f46e383ea865b784d347229ac41dc (diff) |
added register and caf applications
Diffstat (limited to '')
-rw-r--r-- | ctrack/caf/views.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ctrack/caf/views.py b/ctrack/caf/views.py new file mode 100644 index 0000000..b46360b --- /dev/null +++ b/ctrack/caf/views.py @@ -0,0 +1,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 + + + + |