From 11024deaae1cb22cfef117dc65643a22eac050a7 Mon Sep 17 00:00:00 2001 From: Kirill Kuzminykh Date: Mon, 5 Oct 2015 22:40:44 +0300 Subject: [PATCH] Fixed detection of shared connections --- mongoengine/connection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mongoengine/connection.py b/mongoengine/connection.py index 4abca1ab..cf2bd41c 100644 --- a/mongoengine/connection.py +++ b/mongoengine/connection.py @@ -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