mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-09-17 01:32:30 +03:00
Revert "Fix bug in validators documentation (#8779)"
This reverts commit 614bd87b60
.
This commit is contained in:
parent
48a21aa0eb
commit
015afb2d67
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user