summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-02-05 21:26:57 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-02-05 21:26:57 +0000
commit04c4a031ba61abb88996f785d188b25113fb62dd (patch)
tree81fc1191f78f956b699975f7ee2827a90ae61852
parent795de3a67ca7208e7628dffdf6723c81f71353e0 (diff)
newforms: Changed ChoiceField error message *not* to include user-provided input
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-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 e9e1fb7746..1391bd1b2f 100644
--- a/django/newforms/fields.py
+++ b/django/newforms/fields.py
@@ -356,7 +356,7 @@ class ChoiceField(Field):
return value
valid_values = set([str(k) for k, v in self.choices])
if value not in valid_values:
- raise ValidationError(gettext(u'Select a valid choice. %s is not one of the available choices.') % value)
+ raise ValidationError(gettext(u'Select a valid choice. That choice is not one of the available choices.'))
return value
class MultipleChoiceField(ChoiceField):