mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Minor fix to SerializeMethodField docstring (#8629)
This commit is contained in:
parent
9e398c59ab
commit
79de112d62
|
@ -1814,7 +1814,7 @@ class SerializerMethodField(Field):
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
class ExampleSerializer(self):
|
class ExampleSerializer(Serializer):
|
||||||
extra_info = SerializerMethodField()
|
extra_info = SerializerMethodField()
|
||||||
|
|
||||||
def get_extra_info(self, obj):
|
def get_extra_info(self, obj):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user