From: Mike Bayer Date: Tue, 18 Nov 2008 16:24:00 +0000 (+0000) Subject: - the "passive" flag on session.is_modified() X-Git-Tag: rel_0_5_0~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b2d7b109689f4765df7def171248c95b9c0f37a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - the "passive" flag on session.is_modified() is correctly propagated to the attribute manager. --- diff --git a/CHANGES b/CHANGES index 6d26b26884..6734cd3114 100644 --- a/CHANGES +++ b/CHANGES @@ -14,6 +14,9 @@ CHANGES - Query.add_column() can accept FromClause objects in the same manner as session.query() can. + + - the "passive" flag on session.is_modified() + is correctly propagated to the attribute manager. - postgres - Calling alias.execute() in conjunction with diff --git a/lib/sqlalchemy/orm/session.py b/lib/sqlalchemy/orm/session.py index 4768dab7fa..15e751cca9 100644 --- a/lib/sqlalchemy/orm/session.py +++ b/lib/sqlalchemy/orm/session.py @@ -1464,7 +1464,7 @@ class Session(object): for attr in state.manager.attributes: if not include_collections and hasattr(attr.impl, 'get_collection'): continue - (added, unchanged, deleted) = attr.get_history(instance) + (added, unchanged, deleted) = attr.get_history(instance, passive=passive) if added or deleted: return True return False