that's what is_modified(obj) does, sure
On 06/14/2017 01:56 AM, Jacek Blocki wrote:
Having in mind documentation remarks on is_modified for scalar values is
modified = session.is_modified(obj) and obj in session.dirty
a good way to determine if obj was modified?
W dniu środa, 4 listopada
Having in mind documentation remarks on is_modified for scalar values is
modified = session.is_modified(obj) and obj in session.dirty
a good way to determine if obj was modified?
W dniu środa, 4 listopada 2015 02:03:05 UTC+1 użytkownik Michael Bayer
napisał:
>
>
>
> On 11/03/2015 03:21 PM,
On 11/03/2015 03:21 PM, c.bu...@posteo.jp wrote:
Is there a way to find out if a persistent sqlalchemy mapped object was
modified?
It means I recieve a object (persistent, with identiy) from the
database. Then the user (maybe!) modify its data in a dialog-window.
obj =
Is there a way to find out if a persistent sqlalchemy mapped object was
modified?
It means I recieve a object (persistent, with identiy) from the
database. Then the user (maybe!) modify its data in a dialog-window.
obj = session.query(MyClass).first()
LetTheUserDoSomethingWithIt(obj)
if