Merge pull request #1123 from Cykooz/master

Fixed detection of shared connections
This commit is contained in:
Emmanuel Leblond 2016-01-19 18:38:03 +01:00
commit c4afdb7198

View File

@ -141,6 +141,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