Fix an AttributeError introduced in 104f84b7

This commit is contained in:
Raphael Michel
2019-02-26 14:18:42 +01:00
parent 8b3ce69425
commit 0e89d4c0f7
2 changed files with 4 additions and 3 deletions

View File

@@ -817,7 +817,7 @@ class ItemCreate(EventPermissionRequiredMixin, CreateView):
"""
newinst = Item(event=self.request.event)
kwargs = super().get_form_kwargs()
kwargs.update({'instance': newinst})
kwargs.update({'instance': newinst, 'user': self.request.user})
return kwargs
def form_invalid(self, form):