Closed GoogleCodeExporter closed 9 years ago
I'm new to FormAlchemy, so this may be wrong, but it seems that the SA object
(Foo) used as model is the one
being used for create the first time. This makes it 'SA managed' when it should
not be.
By changing line 279 of formalchemy/ext/pylons/controller.py from
fs = fs.bind(fs.model, data=request.POST, session=self.Session())
in
fs = fs.bind(type(fs.model), data=request.POST, session=self.Session())
my (simplistic) test works. But a proper fix may need to check what fs.model is
before doing that.
Original comment by antonin....@gmail.com
on 8 Nov 2009 at 12:51
self.get_model() always return the class. Now fixed. Thanks
Original comment by gael.pas...@gmail.com
on 8 Nov 2009 at 11:55
Original issue reported on code.google.com by
antonin....@gmail.com
on 7 Nov 2009 at 10:27