Revert "Fix bug in validators documentation (#8779)" (#8811)

This reverts commit 614bd87b60.
This commit is contained in:
Asif Saif Uddin 2023-01-03 17:59:36 +06:00 committed by GitHub
parent bf4c6e78d4
commit b3d2753308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,7 +271,6 @@ A validator may be any callable that raises a `serializers.ValidationError` on f
def even_number(value):
if value % 2 != 0:
raise serializers.ValidationError('This field must be an even number.')
return value
#### Field-level validation