summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-12-08 05:54:14 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-12-08 05:54:14 +0000
commit4e72dc86ff30b2e551b0891ac6dbf23f032a4bf8 (patch)
treea095a661aca53e0ceee021d93a2a503783b71c14 /django
parent5f36d9d562a7f78befbb045d529081995ba3097a (diff)
Fixed small Unicode error in newforms. Thanks, Honza Král. Refs #3114
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/newforms/fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/newforms/fields.py b/django/newforms/fields.py
index d676a1c58b..fada75fe5d 100644
--- a/django/newforms/fields.py
+++ b/django/newforms/fields.py
@@ -277,7 +277,7 @@ class MultipleChoiceField(ChoiceField):
val = smart_unicode(val)
new_value.append(val)
# Validate that each value in the value list is in self.choices.
- valid_values = set([k for k, v in self.choices])
+ valid_values = set([smart_unicode(k) for k, v in self.choices])
for val in new_value:
if val not in valid_values:
raise ValidationError(gettext(u'Select a valid choice. %s is not one of the available choices.') % val)