summaryrefslogtreecommitdiffstats
path: root/testsettings.py
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-02-12 16:19:34 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-02-12 18:44:19 (GMT)
commite641c6ec9601b01b54f2eb0f51cf38b9600ae70f (patch)
tree5b5f0e8a83b9d099d287c1f7a5411b7fb45a2cff /testsettings.py
parent359a2f4be068b397ae3485b21bc22d77f38dc24a (diff)
downloaddjango-mellon-e641c6ec9601b01b54f2eb0f51cf38b9600ae70f.zip
django-mellon-e641c6ec9601b01b54f2eb0f51cf38b9600ae70f.tar.gz
django-mellon-e641c6ec9601b01b54f2eb0f51cf38b9600ae70f.tar.bz2
fix concurrency error when creating new users (fixes #9965)
UserSAMLIdentifier is retrieved using get_or_create() first, and if is new we proceed with the creation of the new user, otherwise we delete the temporaru user we created use the one attached to the existing UserSAMLIdentifier.
Diffstat (limited to 'testsettings.py')
-rw-r--r--testsettings.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsettings.py b/testsettings.py
index 752a9b1..5f7bb5c 100644
--- a/testsettings.py
+++ b/testsettings.py
@@ -4,6 +4,9 @@ DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'mellon.sqlite3',
+ 'TEST': {
+ 'NAME': 'mellon-test.sqlite',
+ },
}
}
DEBUG = True