Skip to content

Commit

Permalink
docs: fix code example (encode#8880)
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurturkiye committed Feb 16, 2023
1 parent 4abfa28 commit 3495377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-guide/serializers.md
Expand Up @@ -226,7 +226,7 @@ Individual fields on a serializer can include validators, by declaring them on t
raise serializers.ValidationError('Not a multiple of ten')

class GameRecord(serializers.Serializer):
score = IntegerField(validators=[multiple_of_ten])
score = serializers.IntegerField(validators=[multiple_of_ten])
...

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:
Expand Down

0 comments on commit 3495377

Please sign in to comment.