Allow multiple event checklists per event

TODO: Status chip now needs rethinking
This commit is contained in:
2020-09-29 17:59:03 +01:00
parent 0117002b01
commit 813b1dac85
8 changed files with 129 additions and 26 deletions

View File

@@ -127,7 +127,7 @@ class EventChecklistCreate(generic.CreateView):
template_name = 'event_checklist_form.html'
form_class = forms.EventChecklistForm
def get(self, *args, **kwargs):
"""def get(self, *args, **kwargs):
epk = kwargs.get('pk')
event = models.Event.objects.get(pk=epk)
@@ -137,7 +137,7 @@ class EventChecklistCreate(generic.CreateView):
if ra is not None:
return HttpResponseRedirect(reverse_lazy('ec_edit', kwargs={'pk': ra.pk}))
return super(EventChecklistCreate, self).get(self)
return super(EventChecklistCreate, self).get(self)"""
def get_form(self, **kwargs):
form = super(EventChecklistCreate, self).get_form(**kwargs)