1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #17867 -- Made email validation pass with IDN domains

Thanks Pierre Matri for the report and the initial patch.
This commit is contained in:
Claude Paroz
2012-10-09 15:01:38 +02:00
parent 8cb9968a91
commit 273b96ef9d
2 changed files with 2 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ TEST_DATA = (
(validate_email, 'email@[127.0.0.1]', None),
(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, None, ValidationError),
(validate_email, '', ValidationError),