From ce0e86cf761dc182ae6fb8c0d68964955d19ec75 Mon Sep 17 00:00:00 2001 From: Dima Kurguzov Date: Thu, 22 Aug 2013 11:55:14 +0400 Subject: [PATCH] Fixed #20956 -- Removed useless check in django.db.utils --- 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 a1a2c0b564..8dbfc117a5 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.' or not conn['ENGINE']: + if conn['ENGINE'] == 'django.db.backends.': conn['ENGINE'] = 'django.db.backends.dummy' conn.setdefault('CONN_MAX_AGE', 0) conn.setdefault('OPTIONS', {})