From 9016efe3fc412488df92912c619f8f24fed2937c Mon Sep 17 00:00:00 2001 From: chee hong <71654184+cheehong1030@users.noreply.github.com> Date: Wed, 23 Oct 2024 22:09:36 +0800 Subject: [PATCH] Fix docs typo in Serializers Validators (#9563) --- docs/api-guide/serializers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/serializers.md b/docs/api-guide/serializers.md index eae79b62f..8d56d36f5 100644 --- a/docs/api-guide/serializers.md +++ b/docs/api-guide/serializers.md @@ -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: