Remove EmailField max_length default removal in deconstruct()
This commit is contained in:
parent
cca40703df
commit
48493cff73
|
@ -1129,8 +1129,8 @@ class EmailField(CharField):
|
||||||
|
|
||||||
def deconstruct(self):
|
def deconstruct(self):
|
||||||
name, path, args, kwargs = super(EmailField, self).deconstruct()
|
name, path, args, kwargs = super(EmailField, self).deconstruct()
|
||||||
if kwargs.get("max_length", None) == 75:
|
# We do not exclude max_length if it matches default as we want to change
|
||||||
del kwargs['max_length']
|
# the default in future.
|
||||||
return name, path, args, kwargs
|
return name, path, args, kwargs
|
||||||
|
|
||||||
def formfield(self, **kwargs):
|
def formfield(self, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue