Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
ValUnifer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IPIPAN
ValUnifer
Commits
5ddecdd2
Commit
5ddecdd2
authored
1 year ago
by
dcz
Browse files
Options
Downloads
Patches
Plain Diff
enforce email address uniqness
parent
591046a9
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shellvalier/wsgi.py
+3
-0
3 additions, 0 deletions
shellvalier/wsgi.py
with
3 additions
and
0 deletions
shellvalier/wsgi.py
+
3
−
0
View file @
5ddecdd2
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment