diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-06-02 19:45:48 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-06-02 19:45:48 +0000 |
commit | 51a2c7576aedba03e6440449f0918e577a0f9a14 (patch) | |
tree | a77c40ddef8f8dceda5bd34e023ae92169998fc7 | |
parent | aa32c6d6fd2766bedf19cccb767aa46ceac3264f (diff) | |
download | sqlalchemy-51a2c7576aedba03e6440449f0918e577a0f9a14.tar.gz |
- added filter(), filter_by() to assignmapper
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | lib/sqlalchemy/ext/assignmapper.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -78,6 +78,7 @@ object attribute with that object's position in the list - small fix to SelectResultsExt to not bypass itself during select(). + - added filter(), filter_by() to assignmapper 0.3.7 - engines diff --git a/lib/sqlalchemy/ext/assignmapper.py b/lib/sqlalchemy/ext/assignmapper.py index b7d5411b6..b124de8f6 100644 --- a/lib/sqlalchemy/ext/assignmapper.py +++ b/lib/sqlalchemy/ext/assignmapper.py @@ -43,7 +43,7 @@ def assign_mapper(ctx, class_, *args, **kwargs): m = mapper(class_, extension=extension, *args, **kwargs) class_.mapper = m class_.query = classmethod(lambda cls: Query(class_, session=ctx.current)) - for name in ['get', 'select', 'select_by', 'selectfirst', 'selectfirst_by', 'selectone', 'get_by', 'join_to', 'join_via', 'count', 'count_by', 'options', 'instances']: + for name in ['get', 'filter', 'filter_by', 'select', 'select_by', 'selectfirst', 'selectfirst_by', 'selectone', 'get_by', 'join_to', 'join_via', 'count', 'count_by', 'options', 'instances']: monkeypatch_query_method(ctx, class_, name) for name in ['flush', 'delete', 'expire', 'refresh', 'expunge', 'merge', 'save', 'update', 'save_or_update']: monkeypatch_objectstore_method(ctx, class_, name) |