diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-07-12 20:19:32 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-07-12 20:19:32 +0000 |
commit | 7cb8f04f48eed7afd5befe2ce00ea3771ea79b40 (patch) | |
tree | 0455f09d259d2f3637b8f70a20725db3599ae655 /lib | |
parent | 5d599314d567dcf9edbcf6c6c662a3fd5e83c042 (diff) | |
download | sqlalchemy-7cb8f04f48eed7afd5befe2ce00ea3771ea79b40.tar.gz |
still having mappers not getting compiled...sigh...
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sqlalchemy/orm/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py index 985659eec..2b257e716 100644 --- a/lib/sqlalchemy/orm/query.py +++ b/lib/sqlalchemy/orm/query.py @@ -17,7 +17,7 @@ class Query(object): self.mapper = mapper.class_mapper(class_or_mapper, entity_name=entity_name) else: self.mapper = class_or_mapper.compile() - self.mapper = self.mapper.get_select_mapper() + self.mapper = self.mapper.get_select_mapper().compile() self.always_refresh = kwargs.pop('always_refresh', self.mapper.always_refresh) self.order_by = kwargs.pop('order_by', self.mapper.order_by) |