diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-06-10 19:40:26 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-06-10 19:40:26 +0000 |
commit | dd061f40b4b8fd06bec0b75dd245aa043694dd5f (patch) | |
tree | e720b06fa0de9bfbb02da922fc473bd42c6d70a2 /lib/sqlalchemy/attributes.py | |
parent | 6d22c9318196eee8d5e5e6646a26f9953095a0e7 (diff) | |
download | sqlalchemy-dd061f40b4b8fd06bec0b75dd245aa043694dd5f.tar.gz |
"parent track" function needed to be more specific to the parent class
Diffstat (limited to 'lib/sqlalchemy/attributes.py')
-rw-r--r-- | lib/sqlalchemy/attributes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/attributes.py b/lib/sqlalchemy/attributes.py index c285ea50c..07b395fee 100644 --- a/lib/sqlalchemy/attributes.py +++ b/lib/sqlalchemy/attributes.py @@ -95,10 +95,10 @@ class ManagedAttribute(object): def plain_init(self, *args, **kwargs): pass def hasparent(self, item): - return item.__class__._attribute_manager.attribute_history(item).get('_hasparent_' + self.key) + return item.__class__._attribute_manager.attribute_history(item).get(('_hasparent_', self.obj.__class__, self.key)) def sethasparent(self, item, value): if item is not None: - item.__class__._attribute_manager.attribute_history(item)['_hasparent_' + self.key] = value + item.__class__._attribute_manager.attribute_history(item)[('_hasparent_', self.obj.__class__, self.key)] = value class ScalarAttribute(ManagedAttribute): """Used by AttributeManager to track the history of a scalar attribute |