Fixed #20631 -- Increased the default EmailField max_length to 254.

Thanks pmartin for the report.
This commit is contained in:
Tim Graham 2014-06-30 14:34:45 -04:00
parent 1966054feb
commit 7fd55c3481
10 changed files with 46 additions and 17 deletions

View file

@ -66,6 +66,9 @@ TEST_DATA = (
(validate_email, '"\\\011"@here.com', None),
(validate_email, '"\\\012"@here.com', ValidationError),
(validate_email, 'trailingdot@shouldfail.com.', ValidationError),
# Max length of domain name in email is 251 (see validator for calculation)
(validate_email, 'a@%s.com' % ('a' * 251), None),
(validate_email, 'a@%s.com' % ('a' * 252), ValidationError),
(validate_slug, 'slug-ok', None),
(validate_slug, 'longer-slug-still-ok', None),