mirror of https://github.com/django/django.git
Fixed typo.
This commit is contained in:
parent
6bb6df2943
commit
1efb2e73bf
|
@ -300,7 +300,7 @@ class ModelBase(type):
|
||||||
cls.add_to_class(mgr_name, new_manager)
|
cls.add_to_class(mgr_name, new_manager)
|
||||||
|
|
||||||
def add_to_class(cls, name, value):
|
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'):
|
if not inspect.isclass(value) and hasattr(value, 'contribute_to_class'):
|
||||||
value.contribute_to_class(cls, name)
|
value.contribute_to_class(cls, name)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue