Allow unexpected values for ChoiceField
/MultipleChoiceField
representations by shangxiao · Pull Request #2940 · encode/django-rest-framework (original) (raw)
Can't you just do if six.text_type(value) in self.choice_strings_to_values
instead of relying on a try/except here?
(Not suggesting that we remove the extra method, just commenting on the try/except that is being used)