From 1dd908c0972bac5248ac29adbf0816cb2a2d2bab Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 17 Jan 2007 22:14:13 +0000 Subject: [PATCH] removed unnecessary value grab --- lib/sqlalchemy/orm/attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index 17ab4cc04f..651436a970 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. -- 2.47.2