Fixed detection of shared connections

This commit is contained in:
Kirill Kuzminykh 2015-10-05 22:40:44 +03:00
parent 903982e896
commit 11024deaae

View File

@ -126,6 +126,7 @@ def get_connection(alias=DEFAULT_CONNECTION_NAME, reconnect=False):
connection_settings.pop('name', None)
connection_settings.pop('username', None)
connection_settings.pop('password', None)
connection_settings.pop('authentication_source', None)
if conn_settings == connection_settings and _connections.get(db_alias, None):
connection = _connections[db_alias]
break