diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-12-21 13:29:48 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-12-21 13:29:48 -0500 |
commit | cf50ac219e03886940e4e7fef8dadbb2a9ec5c32 (patch) | |
tree | 723ab1cb294ad4f53fd4ce70a57ba9f853f1f898 /lib/sqlalchemy/orm/dynamic.py | |
parent | 72d4f3e2209638182b301336c6e460a046af9fe9 (diff) | |
download | sqlalchemy-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.py | 6 |
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), |