summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/mapper.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/orm/mapper.py')
-rw-r--r--lib/sqlalchemy/orm/mapper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py
index 5a6e24dfa..a8c525657 100644
--- a/lib/sqlalchemy/orm/mapper.py
+++ b/lib/sqlalchemy/orm/mapper.py
@@ -1484,7 +1484,7 @@ class Mapper(object):
)
if readonly:
- _expire_state(state, readonly)
+ _expire_state(state, state.dict, readonly)
# if specified, eagerly refresh whatever has
# been expired.
@@ -1524,7 +1524,7 @@ class Mapper(object):
deferred_props = [prop.key for prop in [self._columntoproperty[c] for c in postfetch_cols]]
if deferred_props:
- _expire_state(state, deferred_props)
+ _expire_state(state, state.dict, deferred_props)
# synchronize newly inserted ids from one table to the next
# TODO: this still goes a little too often. would be nice to