Django IntegerField Enumeration does not correctly convert the __empty__ value in a ChoiceField #9113
Unanswered
gabn88
asked this question in
Question & Answer
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checklist
Giving the following model and a default Serializer configuration, this raise a TypeError if you select 'unknown' in the Browsable API.
The error:
'<' not supported between instances of 'NoneType' and 'int'
seems to be coming from theMinValueValidator
.The problems seems to be coming from
fields.py
:Beta Was this translation helpful? Give feedback.
All reactions