Ticket #11907: 11907.diff
File 11907.diff, 535 bytes (added by , 15 years ago) |
---|
-
django/forms/fields.py
414 414 'invalid': _(u'Enter a valid e-mail address.'), 415 415 } 416 416 default_validators = [validators.validate_email] 417 418 def clean(self, value): 419 value = value.strip() 420 value = super(EmailField, self).clean(value) 421 return value 417 422 418 423 class FileField(Field): 419 424 widget = FileInput