Fix: fix typo

This commit is contained in:
Chris Guo 2019-09-16 11:54:19 +08:00
parent 5a8736ae45
commit f0b6494a28
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ class RelatedField(Field):
super().__init__(**kwargs)
def __new__(cls, *args, **kwargs):
# We override this method in order to automagically create
# We override this method in order to automatically create
# `ManyRelatedField` classes instead when `many=True` is set.
if kwargs.pop('many', False):
return cls.many_init(*args, **kwargs)

View File

@ -117,7 +117,7 @@ class BaseSerializer(Field):
super().__init__(**kwargs)
def __new__(cls, *args, **kwargs):
# We override this method in order to automagically create
# We override this method in order to automatically create
# `ListSerializer` classes instead when `many=True` is set.
if kwargs.pop('many', False):
return cls.many_init(*args, **kwargs)