Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove EmailField max_length default removal in deconstruct()

  • Loading branch information...
commit 48493cff73fd01870306965f1c48193602754a78 1 parent cca4070
Andrew Godwin authored June 22, 2013

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/db/models/fields/__init__.py
4  django/db/models/fields/__init__.py
@@ -1129,8 +1129,8 @@ def __init__(self, *args, **kwargs):
1129 1129
 
1130 1130
     def deconstruct(self):
1131 1131
         name, path, args, kwargs = super(EmailField, self).deconstruct()
1132  
-        if kwargs.get("max_length", None) == 75:
1133  
-            del kwargs['max_length']
  1132
+        # We do not exclude max_length if it matches default as we want to change
  1133
+        # the default in future.
1134 1134
         return name, path, args, kwargs
1135 1135
 
1136 1136
     def formfield(self, **kwargs):

0 notes on commit 48493cf

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