mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 04:54:00 +03:00
Fixed method signature in docs (#6931)
This commit is contained in:
parent
89ac0a1c7e
commit
7a3b7d2001
|
@ -218,7 +218,7 @@ in the `.validate()` method, or else in the view.
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
class BillingRecordSerializer(serializers.ModelSerializer):
|
class BillingRecordSerializer(serializers.ModelSerializer):
|
||||||
def validate(self, data):
|
def validate(self, attrs):
|
||||||
# Apply custom validation either here, or in the view.
|
# Apply custom validation either here, or in the view.
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user