Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit ce0e86cf761dc182ae6fb8c0d68964955d19ec75 1 parent 297f5af
@koorgoo koorgoo authored timgraham committed
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.
Something went wrong with that request. Please try again.