summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/attributes.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-04-07 17:56:01 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-04-07 17:56:01 -0400
commita645032262afc41cd39a85c9f56388341346a995 (patch)
tree4ac392277e3075e27d75c28017ad1e7902a32d3a /lib/sqlalchemy/orm/attributes.py
parentfbf0c60800e0f01fc872c0770dc0fa1ed1b20cd0 (diff)
downloadsqlalchemy-a645032262afc41cd39a85c9f56388341346a995.tar.gz
- Some fixes to the state handling regarding
backrefs, typically when autoflush=False, where the back-referenced collection wouldn't properly handle add/removes with no net change. Thanks to Richard Murri for the test case + patch. [ticket:2123] (also in 0.6.7).
Diffstat (limited to 'lib/sqlalchemy/orm/attributes.py')
-rw-r--r--lib/sqlalchemy/orm/attributes.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py
index ead62d1fe..c084db8a8 100644
--- a/lib/sqlalchemy/orm/attributes.py
+++ b/lib/sqlalchemy/orm/attributes.py
@@ -871,7 +871,6 @@ class CollectionAttributeImpl(AttributeImpl):
state.commit(dict_, [self.key])
if self.key in state.pending:
-
# pending items exist. issue a modified event,
# add/remove new items.
state.modified_event(dict_, self, user_data, True)