mirror of
https://github.com/django/django.git
synced 2024-11-29 22:56:46 +01:00
Revert "Fixed #20956 -- Removed useless check in django.db.utils"
This reverts commit ce0e86cf76
.
The check is necessary if 'ENGINE' is an empty string.
Thanks apollo13 for pointing this out.
This commit is contained in:
parent
2e926b041c
commit
768bbf3efe
@ -173,7 +173,7 @@ class ConnectionHandler(object):
|
||||
conn.setdefault('AUTOCOMMIT', False)
|
||||
conn.setdefault('AUTOCOMMIT', True)
|
||||
conn.setdefault('ENGINE', 'django.db.backends.dummy')
|
||||
if conn['ENGINE'] == 'django.db.backends.':
|
||||
if conn['ENGINE'] == 'django.db.backends.' or not conn['ENGINE']:
|
||||
conn['ENGINE'] = 'django.db.backends.dummy'
|
||||
conn.setdefault('CONN_MAX_AGE', 0)
|
||||
conn.setdefault('OPTIONS', {})
|
||||
|
Loading…
Reference in New Issue
Block a user