Skip to content

Commit 851e987

Browse files
committed
Allow lazy connection (connect=False) with flat config
This PR allows to declare a lazy connection with `MONGODB_CONNECT = False` because right now only the `MONGODB_SETTINGS` dict support this parameter
1 parent 5dc1dff commit 851e987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_mongoengine/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
MONGODB_CONF_VARS = ('MONGODB_ALIAS', 'MONGODB_DB', 'MONGODB_HOST', 'MONGODB_IS_MOCK',
11-
'MONGODB_PASSWORD', 'MONGODB_PORT', 'MONGODB_USERNAME')
11+
'MONGODB_PASSWORD', 'MONGODB_PORT', 'MONGODB_USERNAME', 'MONGODB_CONNECT')
1212

1313

1414
class InvalidSettingsError(Exception):

0 commit comments

Comments
 (0)