File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 17
17
"default" : {
18
18
"ENGINE" : "django_mongodb_backend" ,
19
19
"NAME" : "djangotests" ,
20
+ "OPTIONS" : {"directConnection" : True },
20
21
},
21
22
"other" : {
22
23
"ENGINE" : "django_mongodb_backend" ,
23
24
"NAME" : "djangotests-other" ,
25
+ "OPTIONS" : {"directConnection" : True },
24
26
},
25
27
}
26
28
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ def get_connection_params(self):
208
208
209
209
@async_unsafe
210
210
def get_new_connection (self , conn_params ):
211
- return MongoClient (** conn_params , directConnection = True , driver = self ._driver_info ())
211
+ return MongoClient (** conn_params , driver = self ._driver_info ())
212
212
213
213
def _driver_info (self ):
214
214
if not os .environ .get ("RUNNING_DJANGOS_TEST_SUITE" ):
You can’t perform that action at this time.
0 commit comments