﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11907	EmailField should run strip()	whatcould	Chris Beaven	"The EmailField should run strip() to remove opening and trailing spaces before the validation is run. Copying and pasting an email can easily pick up a trailing space (I did it myself today).

The code would be something like this, from forms.fields.EmailField. (My first python, sorry if it's ugly, I'm a rubyist.)

{{{
  def clean(self, value):
      value = value.strip()
      value = super(RegexField, self).clean(value)
      return value
}}}
"		closed	Forms	1.1		fixed			Ready for checkin	1	0	0	0	0	0
