Commit 48493cff authored by Andrew Godwin's avatar Andrew Godwin
Browse files

Remove EmailField max_length default removal in deconstruct()

parent cca40703
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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):