mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #20631 -- Increased the default EmailField max_length to 254.
Thanks pmartin for the report.
This commit is contained in:
parent
1966054feb
commit
7fd55c3481
10 changed files with 46 additions and 17 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue