From 69f605f30e271b5ca8efbf0638143fdf88877969 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Thu, 6 Sep 2018 18:16:06 -0700 Subject: [PATCH] Fix validate_my_field signature --- docs/api-guide/serializers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/serializers.md b/docs/api-guide/serializers.md index 07921f2d9..7cf7a6974 100644 --- a/docs/api-guide/serializers.md +++ b/docs/api-guide/serializers.md @@ -1030,7 +1030,7 @@ Similar to Django forms, you can extend and reuse serializers through inheritanc class MyBaseSerializer(Serializer): my_field = serializers.CharField() - def validate_my_field(self): + def validate_my_field(self, value): ... class MySerializer(MyBaseSerializer):