mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-21 17:16:47 +03:00
Fix docs typo in Serializers Validators (#9563)
This commit is contained in:
parent
d3dd45b3f4
commit
9016efe3fc
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user