Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove EmailField max_length default removal in deconstruct()

  • Loading branch information...
commit 48493cff73fd01870306965f1c48193602754a78 1 parent cca4070
@andrewgodwin andrewgodwin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/db/models/fields/__init__.py
View
4 django/db/models/fields/__init__.py
@@ -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.