Skip to content
Snippets Groups Projects
Commit 5ddecdd2 authored by dcz's avatar dcz
Browse files

enforce email address uniqness

parent 591046a9
Branches
No related merge requests found
......@@ -10,7 +10,10 @@ https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
import os
from django.core.wsgi import get_wsgi_application
from django.contrib.auth.models import User
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'shellvalier.settings')
application = get_wsgi_application()
User._meta.get_field('email')._unique = True
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment