diff options
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r-- | lib/sqlalchemy/orm/attributes.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index c2746d9e9..559b97e5a 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -834,6 +834,11 @@ class AttributeManager(object): """decorate the constructor of the given class to establish attribute management on new instances.""" + # do a sweep first, this also helps some attribute extensions + # (like associationproxy) become aware of themselves at the + # class level + self.unregister_class(class_) + oldinit = None doinit = False |