summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-09-02 16:07:46 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-09-02 16:07:46 +0000
commitd578d67035c519d4205e757c926392896e6a57e7 (patch)
tree1c47ef1de153abdb112139a59abbf87342a61069 /lib
parent714e629aeb033e85fd4002bd959e10b8f2de227e (diff)
downloadsqlalchemy-d578d67035c519d4205e757c926392896e6a57e7.tar.gz
- Fixed custom instrumentation bug whereby get_instance_dict()
was not called for newly constructed instances not loaded by the ORM.
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/orm/attributes.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py
index e67026eea..ddebc563f 100644
--- a/lib/sqlalchemy/orm/attributes.py
+++ b/lib/sqlalchemy/orm/attributes.py
@@ -1241,9 +1241,7 @@ class ClassManager(dict):
if self.has_state(instance):
return False
else:
- new_state = self.instance_state_factory(instance, self)
- self.install_state(instance, new_state)
- return new_state
+ return self.setup_instance(instance)
def has_parent(self, state, key, optimistic=False):
"""TODO"""