Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Remove EmailField max_length default removal in deconstruct()

  • Loading branch information...
1 parent cca4070 commit 48493cff73fd01870306965f1c48193602754a78 @andrewgodwin andrewgodwin committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/db/models/fields/
4 django/db/models/fields/
@@ -1129,8 +1129,8 @@ def __init__(self, *args, **kwargs):
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):

0 comments on commit 48493cf

Please sign in to comment.
Something went wrong with that request. Please try again.