aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/register/views.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-14 17:01:22 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-14 17:01:22 +0100
commit14fa59eee9ba35ad462b5b17229a09164f5d716d (patch)
tree1223522b7cc30cf57ad8ec66e50c5081727fe3d4 /ctrack/register/views.py
parentbc4edc69407f20da32a48d534b3d725cc3818c1a (diff)
about to nuke migrations
Diffstat (limited to 'ctrack/register/views.py')
-rw-r--r--ctrack/register/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ctrack/register/views.py b/ctrack/register/views.py
index 9ec96e8..3fd8f1f 100644
--- a/ctrack/register/views.py
+++ b/ctrack/register/views.py
@@ -6,7 +6,7 @@ from django.views.generic import FormView, DeleteView, CreateView
from ctrack.caf.models import CAF
from ctrack.organisations.models import Organisation
-from ctrack.register.forms import EngagementEventCreateForm, AddMeetingForm
+from ctrack.register.forms import EngagementEventCreateForm, CreateSimpleDateTimeEventForm
from ctrack.register.models import EngagementEvent, SingleDateTimeEvent
@@ -48,7 +48,7 @@ class EngagementEventCreate(LoginRequiredMixin, FormView):
class EngagementEventCreateFromCaf(LoginRequiredMixin, FormView):
fields = "__all__"
form_class = EngagementEventCreateForm
- template_name = "register/engagementevent_form.html"
+ template_name = "snippets/event_form_base.html"
def form_valid(self, form):
ee = form.save(commit=False)
@@ -74,7 +74,7 @@ class EngagementEventCreateFromCaf(LoginRequiredMixin, FormView):
class SingleDateTimeEventCreate(LoginRequiredMixin, FormView):
template_name = "single_datetime_event_create.html"
- form_class = AddMeetingForm
+ form_class = CreateSimpleDateTimeEventForm
success_url = reverse_lazy("organisations:list")
def get_form_kwargs(self):