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

@ -70,7 +70,7 @@ class IntrospectionTests(TestCase):
desc = connection.introspection.get_table_description(cursor, Reporter._meta.db_table)
self.assertEqual(
[r[3] for r in desc if datatype(r[1], r) == 'CharField'],
[30, 30, 75]
[30, 30, 254]
)
@skipUnlessDBFeature('can_introspect_null')