Fixed method signature in docs (#6931)

This commit is contained in:
napsterv 2019-09-16 23:17:29 +05:30 committed by Ryan P Kilby
parent 89ac0a1c7e
commit 7a3b7d2001

View File

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