Skip to content

Commit

Permalink
Fix docs typo in Serializers Validators (#9563)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheehong1030 authored Oct 23, 2024
1 parent d3dd45b commit 9016efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-guide/serializers.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ Serializer classes can also include reusable validators that are applied to the

class EventSerializer(serializers.Serializer):
name = serializers.CharField()
room_number = serializers.IntegerField(choices=[101, 102, 103, 201])
room_number = serializers.ChoiceField(choices=[101, 102, 103, 201])
date = serializers.DateField()

class Meta:
Expand Down

0 comments on commit 9016efe

Please sign in to comment.