diff options
-rw-r--r-- | lib/sqlalchemy/orm/attributes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index 17ab4cc04..651436a97 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -210,7 +210,7 @@ class InstrumentedAttribute(object): orig = state.get('original', None) if orig is not None: orig.commit_attribute(self, obj) - return obj.__dict__[self.key] + return value else: # note that we arent raising AttributeErrors, just returning None. # this might be a good thing to be changeable by options. |