1
0
mirror of https://github.com/django/django.git synced 2024-12-28 12:06:22 +00:00

Remove EmailField max_length default removal in deconstruct()

This commit is contained in:
Andrew Godwin 2013-06-22 12:56:37 +01:00
parent cca40703df
commit 48493cff73

View File

@ -1129,8 +1129,8 @@ class EmailField(CharField):
def deconstruct(self):
name, path, args, kwargs = super(EmailField, self).deconstruct()
if kwargs.get("max_length", None) == 75:
del kwargs['max_length']
# We do not exclude max_length if it matches default as we want to change
# the default in future.
return name, path, args, kwargs
def formfield(self, **kwargs):