We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4b4b44 commit 03629aeCopy full SHA for 03629ae
.github/workflows/mongodb_settings.py
@@ -17,10 +17,12 @@
17
"default": {
18
"ENGINE": "django_mongodb_backend",
19
"NAME": "djangotests",
20
+ "OPTIONS": {"directConnection": True},
21
},
22
"other": {
23
24
"NAME": "djangotests-other",
25
26
27
}
28
django_mongodb_backend/base.py
@@ -208,7 +208,7 @@ def get_connection_params(self):
208
209
@async_unsafe
210
def get_new_connection(self, conn_params):
211
- return MongoClient(**conn_params, directConnection=True, driver=self._driver_info())
+ return MongoClient(**conn_params, driver=self._driver_info())
212
213
def _driver_info(self):
214
if not os.environ.get("RUNNING_DJANGOS_TEST_SUITE"):
0 commit comments