summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/interfaces.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-06-02 12:06:39 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-06-02 12:06:39 -0400
commit32716eae773e6f6b7f37baf705342c1ed89df461 (patch)
tree0f99019fc9db8cb34b9ba14c0b8469f4cb7d6cd6 /lib/sqlalchemy/orm/interfaces.py
parent832d657854f6fca8a1925e89f0ad20d260dc9e45 (diff)
downloadsqlalchemy-32716eae773e6f6b7f37baf705342c1ed89df461.tar.gz
- blow away context._attributes
- to account for query._attributes/context.attributes, just pass the attributes dict directly to the PathRegistry methods
Diffstat (limited to 'lib/sqlalchemy/orm/interfaces.py')
-rw-r--r--lib/sqlalchemy/orm/interfaces.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py
index a81404401..396f234c4 100644
--- a/lib/sqlalchemy/orm/interfaces.py
+++ b/lib/sqlalchemy/orm/interfaces.py
@@ -745,7 +745,7 @@ class PropertyOption(MapperOption):
ext_info.mapper, aliased=True,
_use_mapper_path=True)
ext_info = inspect(ac)
- path.set(query, "path_with_polymorphic", ext_info)
+ path.set(query._attributes, "path_with_polymorphic", ext_info)
else:
path_element = mapper = getattr(prop, 'mapper', None)
if mapper is None and tokens:
@@ -776,13 +776,13 @@ class StrategizedOption(PropertyOption):
if self.chained:
for path in paths:
path.set(
- query,
+ query._attributes,
"loaderstrategy",
strategy
)
else:
paths[-1].set(
- query,
+ query._attributes,
"loaderstrategy",
strategy
)