aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/views.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-01-27 20:25:04 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2020-01-27 20:25:04 +0000
commitdfc5ede55ee0bb70be9f5317324409d5f0eb763a (patch)
treed245e6fdfb5cfeda72a2e533988f0315fab47073 /ctrack/caf/views.py
parentd0ac61da601f46e383ea865b784d347229ac41dc (diff)
added register and caf applications
Diffstat (limited to '')
-rw-r--r--ctrack/caf/views.py17
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
+
+
+
+