Skip to content

Commit 8bc14d4

Browse files
author
Mark Unsworth
committed
removed use of slave_okay option when creating connection
1 parent 236b152 commit 8bc14d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/mongodb/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33

44
from django.core.management import call_command
55
from django.contrib.sites.models import Site
6-
from django.db import connection
76
from django.db.utils import DatabaseError, IntegrityError
87
from django.db.models import Q
98
from gridfs import GridOut
109
from pymongo import ASCENDING, DESCENDING
1110
from django_mongodb_engine.base import DatabaseWrapper
1211
from models import *
12+
from pymongo.collection import Collection
13+
1314
from utils import *
1415

1516

@@ -199,7 +200,6 @@ class foodict(dict):
199200

200201
with self.custom_database_wrapper({
201202
'OPTIONS': {
202-
'SLAVE_OKAY': True,
203203
'TZ_AWARE': True,
204204
'DOCUMENT_CLASS': foodict,
205205
}}) as connection:

0 commit comments

Comments
 (0)