summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/dynamic.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-12-21 13:29:48 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2012-12-21 13:29:48 -0500
commitcf50ac219e03886940e4e7fef8dadbb2a9ec5c32 (patch)
tree723ab1cb294ad4f53fd4ce70a57ba9f853f1f898 /lib/sqlalchemy/orm/dynamic.py
parent72d4f3e2209638182b301336c6e460a046af9fe9 (diff)
downloadsqlalchemy-cf50ac219e03886940e4e7fef8dadbb2a9ec5c32.tar.gz
- cleanup on these tests
- add "extend()" to AppenderQuery
Diffstat (limited to 'lib/sqlalchemy/orm/dynamic.py')
-rw-r--r--lib/sqlalchemy/orm/dynamic.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/dynamic.py b/lib/sqlalchemy/orm/dynamic.py
index c1dea95f1..64353cfaf 100644
--- a/lib/sqlalchemy/orm/dynamic.py
+++ b/lib/sqlalchemy/orm/dynamic.py
@@ -286,6 +286,12 @@ class AppenderMixin(object):
return query
+ def extend(self, iterator):
+ for item in iterator:
+ self.attr.append(
+ attributes.instance_state(self.instance),
+ attributes.instance_dict(self.instance), item, None)
+
def append(self, item):
self.attr.append(
attributes.instance_state(self.instance),