[patch] newforms: choices checking should unicode choices list before comparing to a value
|Reported by:||anton@…||Owned by:||adrian|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
There is a mistake in django/newforms/fields.py:
when one uses ChoiceField to select a value from predefined choices it tries to validate selected choice against a list of string values, should be a list of unicode values as it's done in MultipleChoiceField
Without the patch one always gets "Select a valid choice. %s is not one of the available choices." ValidationError.
Patch works with my previous #3401