#3406: [patch] newforms: choices checking should unicode choices list before comparing to a value ------------------------------+--------------------------------------------- Reporter: [EMAIL PROTECTED] | Owner: adrian Status: new | Component: django.newforms Version: SVN | Keywords: Stage: Unreviewed | Has_patch: 1 ------------------------------+--------------------------------------------- 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
-- Ticket URL: <http://code.djangoproject.com/ticket/3406> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
