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
1 changed files with 2 additions and 2 deletions

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):