aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/caf/views.py')
-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
+
+
+
+