]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
removed unnecessary value grab
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 17 Jan 2007 22:14:13 +0000 (22:14 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 17 Jan 2007 22:14:13 +0000 (22:14 +0000)
lib/sqlalchemy/orm/attributes.py

index 17ab4cc04f944a9c8e9eebd29951386ce1b64fce..651436a9703f951bcc276f59772a3a4aa9a938e3 100644 (file)
@@ -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.