mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 01:26:53 +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):
|
class EventSerializer(serializers.Serializer):
|
||||||
name = serializers.CharField()
|
name = serializers.CharField()
|
||||||
room_number = serializers.IntegerField(choices=[101, 102, 103, 201])
|
room_number = serializers.ChoiceField(choices=[101, 102, 103, 201])
|
||||||
date = serializers.DateField()
|
date = serializers.DateField()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user