We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 236b152 commit 8bc14d4Copy full SHA for 8bc14d4
tests/mongodb/tests.py
@@ -3,13 +3,14 @@
3
4
from django.core.management import call_command
5
from django.contrib.sites.models import Site
6
-from django.db import connection
7
from django.db.utils import DatabaseError, IntegrityError
8
from django.db.models import Q
9
from gridfs import GridOut
10
from pymongo import ASCENDING, DESCENDING
11
from django_mongodb_engine.base import DatabaseWrapper
12
from models import *
+from pymongo.collection import Collection
13
+
14
from utils import *
15
16
@@ -199,7 +200,6 @@ class foodict(dict):
199
200
201
with self.custom_database_wrapper({
202
'OPTIONS': {
- 'SLAVE_OKAY': True,
203
'TZ_AWARE': True,
204
'DOCUMENT_CLASS': foodict,
205
}}) as connection:
0 commit comments