From 04c4a031ba61abb88996f785d188b25113fb62dd Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 5 Feb 2007 21:26:57 +0000 Subject: [PATCH] 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 --- django/newforms/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):