Django

Code

Changeset 4460

Show
Ignore:
Timestamp:
02/05/07 15:26:57 (1 year ago)
Author:
adrian
Message:

newforms: Changed ChoiceField? error message *not* to include user-provided input

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/newforms/fields.py

    r4440 r4460  
    357357        valid_values = set([str(k) for k, v in self.choices]) 
    358358        if value not in valid_values: 
    359             raise ValidationError(gettext(u'Select a valid choice. %s is not one of the available choices.') % value
     359            raise ValidationError(gettext(u'Select a valid choice. That choice is not one of the available choices.')
    360360        return value 
    361361