Opened 18 years ago
Closed 18 years ago
#3405 closed (duplicate)
[patch] newforms: choices checking should unicode choices list before comparing to a value
Description ¶
Hello everyone
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
Note:
See TracTickets
for help on using tickets.
sorry, duplicate (browser hung)