diff options
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 |