summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2009-05-13 19:34:21 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2009-05-13 19:34:21 +0000
commit7af9d1c04b431a98c1e19dd234a00fb202283c0a (patch)
tree1a110f380b895578de1cc1dc052e2e2f1a42604b /lib
parentf19d4dc8158680f3aa56f13d1ea8ea9b080563fc (diff)
downloadsqlalchemy-7af9d1c04b431a98c1e19dd234a00fb202283c0a.tar.gz
- Fixed obscure mapper compilation issue when inheriting
mappers are used which would result in un-initialized attributes.
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/orm/mapper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py
index e5dbb4d03..8af6153d6 100644
--- a/lib/sqlalchemy/orm/mapper.py
+++ b/lib/sqlalchemy/orm/mapper.py
@@ -682,7 +682,7 @@ class Mapper(object):
for key, prop in l:
self._log("initialize prop " + key)
- if not prop._compile_started:
+ if prop.parent is self and not prop._compile_started:
prop.init()
if prop._compile_finished: