Fix session bug in old CRUD views

This commit is contained in:
Lance Edgar 2016-12-12 15:24:09 -06:00
parent 79e63571e3
commit 14ac7aa198

View file

@ -100,6 +100,7 @@ class CrudView(View):
kwargs.setdefault('cancel_url', self.cancel_url) kwargs.setdefault('cancel_url', self.cancel_url)
kwargs.setdefault('creating', self.creating) kwargs.setdefault('creating', self.creating)
kwargs.setdefault('updating', self.updating) kwargs.setdefault('updating', self.updating)
kwargs.setdefault('session', Session())
form = form_factory(self.request, fieldset, **kwargs) form = form_factory(self.request, fieldset, **kwargs)
if form.creating: if form.creating: