diff --git a/docs/api-guide/validators.md b/docs/api-guide/validators.md index 87417b7f15..49685838a2 100644 --- a/docs/api-guide/validators.md +++ b/docs/api-guide/validators.md @@ -218,7 +218,7 @@ in the `.validate()` method, or else in the view. For example: class BillingRecordSerializer(serializers.ModelSerializer): - def validate(self, data): + def validate(self, attrs): # Apply custom validation either here, or in the view. class Meta: