Relax the RegEx restrictions to allow the new ICAAN TLDs.

This commit is contained in:
Jay Shirley
2014-08-08 09:11:05 -07:00
parent 174d964553
commit 85336f9777
3 changed files with 6 additions and 2 deletions

View File

@@ -2902,6 +2902,9 @@ class FieldTest(unittest.TestCase):
"aJIazqqWkm7.net"))
self.assertTrue(user.validate() is None)
user = User(email="new-tld@example.technology")
self.assertTrue(user.validate() is None)
user = User(email='me@localhost')
self.assertRaises(ValidationError, user.validate)