mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 08:59:54 +03:00
Fix: fix typo
This commit is contained in:
parent
5a8736ae45
commit
f0b6494a28
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user