Skip to content

Commit b3d2753

Browse files
authored
Revert "Fix bug in validators documentation (#8779)" (#8811)
This reverts commit 614bd87.
1 parent bf4c6e7 commit b3d2753

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

docs/api-guide/validators.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ A validator may be any callable that raises a `serializers.ValidationError` on f
271271
def even_number(value):
272272
if value % 2 != 0:
273273
raise serializers.ValidationError('This field must be an even number.')
274-
return value
275274

276275
#### Field-level validation
277276

0 commit comments

Comments
 (0)