Browse files

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

  • Loading branch information...
1 parent 297f5af commit ce0e86cf761dc182ae6fb8c0d68964955d19ec75 @koorgoo koorgoo committed with timgraham Aug 22, 2013
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.' 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', {})

0 comments on commit ce0e86c

Please sign in to comment.