Moved event specific code from ChainedForm to EventCreateForm via

ModelMixin.
This commit is contained in:
2018-02-25 17:04:32 +01:00
parent b1cdfe4803
commit e669d5b55b
3 changed files with 36 additions and 30 deletions

View File

@@ -256,7 +256,7 @@ class EventCreateView(generic.FormView):
return context
def form_valid(self, form):
event = form.save()
event = form.get_instance()
next_form_name = form.next_form_name
if next_form_name: