Merge pull request #6165 from dsanders11/patch-1

Fix validate_my_field signature
This commit is contained in:
Xavier Ordoquy 2018-09-07 05:44:24 +00:00 committed by GitHub
commit 1d5771d980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):