Opened 17 years ago

Closed 17 years ago

#3405 closed (duplicate)

[patch] newforms: choices checking should unicode choices list before comparing to a value

Reported by: anton@… Owned by: Adrian Holovaty
Component: Forms Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Hello everyone

There is a mistake in django/newforms/

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

Change History (1)

comment:1 by anton@…, 17 years ago

Resolution: duplicate
Status: newclosed

sorry, duplicate (browser hung)

Note: See TracTickets for help on using tickets.
Back to Top