Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

newforms: Changed ChoiceField error message *not* to include user-pro…

…vided input

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 04c4a031ba61abb88996f785d188b25113fb62dd 1 parent 795de3a
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/newforms/fields.py
View
2  django/newforms/fields.py
@@ -356,7 +356,7 @@ def clean(self, value):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.