aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/register/views.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-18 14:50:00 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-18 14:50:00 +0100
commitfed4b3157f25f65ccdaa5fd41463995a080d4673 (patch)
tree9ad2cea4a1076663f18ed27e738da979dfe7e128 /ctrack/register/views.py
parentbc10c9df7b9d3678e4efd9d05055f41ccd8a763f (diff)
nice links from org detail page to specific types of simple event
Diffstat (limited to '')
-rw-r--r--ctrack/register/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctrack/register/views.py b/ctrack/register/views.py
index 0ab71c3..07673b9 100644
--- a/ctrack/register/views.py
+++ b/ctrack/register/views.py
@@ -84,11 +84,11 @@ class SingleDateTimeEventCreate(FormView):
return context
return context
-
def get_form_kwargs(self):
kwargs = super().get_form_kwargs()
kwargs["user"] = self.request.user
kwargs["org_slug"] = self.kwargs.get("org_slug")
+ kwargs["event_type"] = self.kwargs.get("event_type")
return kwargs
def form_valid(self, form):