From f0b6494a28dbb1d6e4aa0f66fe3d0b3f3b18a772 Mon Sep 17 00:00:00 2001 From: Chris Guo Date: Mon, 16 Sep 2019 11:54:19 +0800 Subject: [PATCH] Fix: fix typo --- rest_framework/relations.py | 2 +- rest_framework/serializers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rest_framework/relations.py b/rest_framework/relations.py index 3c2132c5b..c5defa8cd 100644 --- a/rest_framework/relations.py +++ b/rest_framework/relations.py @@ -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) diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py index 01f34298b..56e62bf4c 100644 --- a/rest_framework/serializers.py +++ b/rest_framework/serializers.py @@ -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)