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

@ -54,7 +54,7 @@ class InspectDBTestCase(TestCase):
assertFieldType('date_time_field', "models.DateTimeField()")
if (connection.features.can_introspect_max_length and
not connection.features.interprets_empty_strings_as_nulls):
assertFieldType('email_field', "models.CharField(max_length=75)")
assertFieldType('email_field', "models.CharField(max_length=254)")
assertFieldType('file_field', "models.CharField(max_length=100)")
assertFieldType('file_path_field', "models.CharField(max_length=100)")
if connection.features.can_introspect_ip_address_field: