From 768bbf3efe0c412bced1e865e90139a0f07dc613 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 22 Aug 2013 09:47:17 -0400 Subject: [PATCH] Revert "Fixed #20956 -- Removed useless check in django.db.utils" This reverts commit ce0e86cf761dc182ae6fb8c0d68964955d19ec75. The check is necessary if 'ENGINE' is an empty string. Thanks apollo13 for pointing this out. --- django/db/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/utils.py b/django/db/utils.py index 8dbfc117a5..a1a2c0b564 100644 --- a/django/db/utils.py +++ b/django/db/utils.py @@ -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', {})