Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit ce0e86cf761dc182ae6fb8c0d68964955d19ec75 1 parent 297f5af
Dima Kurguzov authored August 22, 2013 timgraham committed August 22, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/utils.py
2  django/db/utils.py
@@ -173,7 +173,7 @@ def ensure_defaults(self, alias):
173 173
             conn.setdefault('AUTOCOMMIT', False)
174 174
         conn.setdefault('AUTOCOMMIT', True)
175 175
         conn.setdefault('ENGINE', 'django.db.backends.dummy')
176  
-        if conn['ENGINE'] == 'django.db.backends.' or not conn['ENGINE']:
  176
+        if conn['ENGINE'] == 'django.db.backends.':
177 177
             conn['ENGINE'] = 'django.db.backends.dummy'
178 178
         conn.setdefault('CONN_MAX_AGE', 0)
179 179
         conn.setdefault('OPTIONS', {})

0 notes on commit ce0e86c

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