-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unique Email - allow blank #9
Comments
Make your emails null, not blank. An empty string is still a value in the DB, so the unique constraint will disallow you from having multiple values of the same. Closing this issue. |
Ok, but this causes problem in django admin page, since email appears to be required now, i cannot save without it complaining. |
Ah, that's true. I'll look at that at some point, if you need it now, feel free to send in a PR. |
I believe this could could be fixed by allowing changing this field by a setting similar to email's length and uniqueness. |
One way to fix it would be to set the models |
Hi, with the option REQUIRE_UNIQUE_EMAIL set to True,
Is there a way to allow emails to still be blank?
The text was updated successfully, but these errors were encountered: