mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-13 05:06:53 +03:00
Merge pull request #6165 from dsanders11/patch-1
Fix validate_my_field signature
This commit is contained in:
commit
1d5771d980
|
@ -1030,7 +1030,7 @@ Similar to Django forms, you can extend and reuse serializers through inheritanc
|
||||||
class MyBaseSerializer(Serializer):
|
class MyBaseSerializer(Serializer):
|
||||||
my_field = serializers.CharField()
|
my_field = serializers.CharField()
|
||||||
|
|
||||||
def validate_my_field(self):
|
def validate_my_field(self, value):
|
||||||
...
|
...
|
||||||
|
|
||||||
class MySerializer(MyBaseSerializer):
|
class MySerializer(MyBaseSerializer):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user