Skip to content

Commit 3495377

Browse files
authored
docs: fix code example (encode#8880)
1 parent 4abfa28 commit 3495377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/serializers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Individual fields on a serializer can include validators, by declaring them on t
226226
raise serializers.ValidationError('Not a multiple of ten')
227227

228228
class GameRecord(serializers.Serializer):
229-
score = IntegerField(validators=[multiple_of_ten])
229+
score = serializers.IntegerField(validators=[multiple_of_ten])
230230
...
231231

232232
Serializer classes can also include reusable validators that are applied to the complete set of field data. These validators are included by declaring them on an inner `Meta` class, like so:

0 commit comments

Comments
 (0)