From ccc1374f6db49c5b5318ba241b50439c8d8446fb Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 9 Dec 2016 10:33:39 -0600 Subject: [PATCH] Fix bug when editing a data row This was a new-ish bug, caused I think by 4a2ba3925d1ab2f33bbd7a67fcc4433993247683 --- tailbone/views/master.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tailbone/views/master.py b/tailbone/views/master.py index 685f989b..6a8a2d9d 100644 --- a/tailbone/views/master.py +++ b/tailbone/views/master.py @@ -1205,6 +1205,7 @@ class MasterView(View): else: kwargs['cancel_url'] = self.get_row_action_url('view', instance) + kwargs.setdefault('session', self.Session()) form = forms.AlchemyForm(self.request, fieldset, **kwargs) form.readonly = self.viewing return form