Loading django/db/models/base.py +1 −1 Original line number Diff line number Diff line Loading @@ -300,7 +300,7 @@ class ModelBase(type): cls.add_to_class(mgr_name, new_manager) def add_to_class(cls, name, value): # We should call the contirbute_to_class method only if it's bound # We should call the contribute_to_class method only if it's bound if not inspect.isclass(value) and hasattr(value, 'contribute_to_class'): value.contribute_to_class(cls, name) else: Loading Loading
django/db/models/base.py +1 −1 Original line number Diff line number Diff line Loading @@ -300,7 +300,7 @@ class ModelBase(type): cls.add_to_class(mgr_name, new_manager) def add_to_class(cls, name, value): # We should call the contirbute_to_class method only if it's bound # We should call the contribute_to_class method only if it's bound if not inspect.isclass(value) and hasattr(value, 'contribute_to_class'): value.contribute_to_class(cls, name) else: Loading