Fix docs typo in Serializers Validators (#9563)

This commit is contained in:
chee hong 2024-10-23 22:09:36 +08:00 committed by GitHub
parent d3dd45b3f4
commit 9016efe3fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: