diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-01-17 22:14:13 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-01-17 22:14:13 +0000 |
commit | 1dd908c0972bac5248ac29adbf0816cb2a2d2bab (patch) | |
tree | 846e2828902926620caf56614c534b104ad4e076 /lib/sqlalchemy | |
parent | 5f858e16b0becea867948f26f0d3e342d08a9da6 (diff) | |
download | sqlalchemy-1dd908c0972bac5248ac29adbf0816cb2a2d2bab.tar.gz |
removed unnecessary value grab
Diffstat (limited to 'lib/sqlalchemy')
-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. |