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

enforce email address uniqness

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