From 79de112d627d9a84e302d54849e95dd7ab677a43 Mon Sep 17 00:00:00 2001 From: manelbdacosta <30473446+manelbdcosta@users.noreply.github.com> Date: Mon, 3 Oct 2022 10:36:51 +0100 Subject: [PATCH] Minor fix to SerializeMethodField docstring (#8629) --- rest_framework/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 6374c1ea9..a6924bf23 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -1814,7 +1814,7 @@ class SerializerMethodField(Field): For example: - class ExampleSerializer(self): + class ExampleSerializer(Serializer): extra_info = SerializerMethodField() def get_extra_info(self, obj):