From 77f58f5cac18ae0f42a7a1aea467f200c5801f6e Mon Sep 17 00:00:00 2001 From: Sergio Berlotto Date: Thu, 27 Jul 2017 19:13:18 -0300 Subject: [PATCH] Adding 'connect': False as default to connections --- mongoengine/connection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mongoengine/connection.py b/mongoengine/connection.py index 34ff4dc31..bef6e4d07 100644 --- a/mongoengine/connection.py +++ b/mongoengine/connection.py @@ -65,7 +65,8 @@ def register_connection(alias, name=None, host=None, port=None, 'username': username, 'password': password, 'authentication_source': authentication_source, - 'authentication_mechanism': authentication_mechanism + 'authentication_mechanism': authentication_mechanism, + 'connect': False } conn_host = conn_settings['host']