Docs indicate that IntegerField
takes a choices
parameter
#9597
Unanswered
rmcloughlin
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm reading the docs, and in this section the second example contains this line:
room_number = serializers.IntegerField(choices=[101, 102, 103, 201])
But if I try to run that code I am shown:
TypeError: Field.__init__() got an unexpected keyword argument 'choices'
Beta Was this translation helpful? Give feedback.
All reactions