From 48493cff73fd01870306965f1c48193602754a78 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 22 Jun 2013 12:56:37 +0100 Subject: [PATCH] Remove EmailField max_length default removal in deconstruct() --- django/db/models/fields/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 7f3242b213..9263f81184 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -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):