Skip to content
Browse files

Revert "Fixed #20956 -- Removed useless check in django.db.utils"

This reverts commit ce0e86c.

The check is necessary if 'ENGINE' is an empty string.
Thanks apollo13 for pointing this out.
  • Loading branch information...
1 parent 2e926b0 commit 768bbf3efe0c412bced1e865e90139a0f07dc613 @timgraham timgraham committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/
2 django/db/
@@ -173,7 +173,7 @@ def ensure_defaults(self, alias):
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', {})

0 comments on commit 768bbf3

Please sign in to comment.
Something went wrong with that request. Please try again.