summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-01-22 17:30:52 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2012-01-22 17:30:52 -0500
commit09f3a284d82f8aa48e59fd935dc4b8b3fab43e2f (patch)
treee22abd52921f501a4ae9d07bad9876cec040c6c4 /lib/sqlalchemy
parent54fd3f1cfe1af09513f642fdfe9565d2d3e5fff3 (diff)
downloadsqlalchemy-09f3a284d82f8aa48e59fd935dc4b8b3fab43e2f.tar.gz
fix a callcount issue here
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/orm/strategies.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py
index 9197c2397..1bdd18cde 100644
--- a/lib/sqlalchemy/orm/strategies.py
+++ b/lib/sqlalchemy/orm/strategies.py
@@ -515,8 +515,6 @@ class LazyLoader(AbstractRelationshipLoader):
else:
get_attr = instance_mapper._get_state_attr_by_column
- # create a strong reference
- # to state.dict
dict_ = state.dict
if passive is attributes.PASSIVE_NO_FETCH_RELATED:
@@ -527,7 +525,7 @@ class LazyLoader(AbstractRelationshipLoader):
return [
get_attr(
state,
- state.dict,
+ dict_,
self._equated_columns[pk],
passive=attr_passive)
for pk in self.mapper.primary_key