mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #4833 -- Validate email addresses with localhost as domain
This commit is contained in:
parent
1bbd36a36a
commit
4e2e8f39d1
3 changed files with 47 additions and 22 deletions
|
@ -29,6 +29,8 @@ TEST_DATA = (
|
|||
(validate_email, 'example@valid-----hyphens.com', None),
|
||||
(validate_email, 'example@valid-with-hyphens.com', None),
|
||||
(validate_email, 'test@domain.with.idn.tld.उदाहरण.परीक्षा', None),
|
||||
(validate_email, 'email@localhost', None),
|
||||
(EmailValidator(whitelist=['localdomain']), 'email@localdomain', None),
|
||||
|
||||
(validate_email, None, ValidationError),
|
||||
(validate_email, '', ValidationError),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue