Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 768bbf3efe0c412bced1e865e90139a0f07dc613 1 parent 2e926b0
@timgraham timgraham authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/utils.py
View
2  django/db/utils.py
@@ -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', {})
Please sign in to comment.
Something went wrong with that request. Please try again.