summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-01-17 22:14:13 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-01-17 22:14:13 +0000
commit1dd908c0972bac5248ac29adbf0816cb2a2d2bab (patch)
tree846e2828902926620caf56614c534b104ad4e076 /lib/sqlalchemy
parent5f858e16b0becea867948f26f0d3e342d08a9da6 (diff)
downloadsqlalchemy-1dd908c0972bac5248ac29adbf0816cb2a2d2bab.tar.gz
removed unnecessary value grab
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/orm/attributes.py2
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.