oops stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Sun, 29 Nov 2009 23:22:32 +0100
branchstable
changeset 3943 716ce5e816f2
parent 3942 32da110d7168
child 3944 1677312fd8a3
oops
web/views/editforms.py
--- a/web/views/editforms.py	Sun Nov 29 23:17:31 2009 +0100
+++ b/web/views/editforms.py	Sun Nov 29 23:22:32 2009 +0100
@@ -495,7 +495,7 @@
                                          parent_form=self.pform,
                                          **self.extra_kwargs)
         if self.pform is None:
-            form.restore_previous_post(self.session_key())
+            form.restore_previous_post(form.session_key())
         #assert form.parent_form
         self.add_hiddens(form, entity)
         return form