Skip to content

Close #622 by explicitly setting email length (compatibility with Django 1.7)#684

Merged
omab merged 1 commit intoomab:masterfrom
frankier:django1.7-emailfield-compat
Jul 22, 2015
Merged

Close #622 by explicitly setting email length (compatibility with Django 1.7)#684
omab merged 1 commit intoomab:masterfrom
frankier:django1.7-emailfield-compat

Conversation

@frankier
Copy link
Copy Markdown

Django 1.8 increases default max_length of EmailField from 75 to 254. Since max_length is not currently specified, but the initial migration contains the 1.8 default of 254, Django 1.7 will think there's a migration to create, decreasing the max_length to 75. This can be fixed by explicitly setting the max_length to 254.

omab added a commit that referenced this pull request Jul 22, 2015
Close #622 by explicitly setting email length (compatibility with Django 1.7)
@omab omab merged commit 1553736 into omab:master Jul 22, 2015
@omab
Copy link
Copy Markdown
Owner

omab commented Jul 22, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants