Skip to content

Commit 495b82d

Browse files
author
Mark Unsworth
committed
removed use of slave_okay
1 parent 8bc14d4 commit 495b82d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

django_mongodb_engine/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ def log(self, op, duration, args, kwargs=None):
7070
logger.debug(msg, extra={'duration': duration})
7171

7272
def find(self, *args, **kwargs):
73-
if not 'slave_okay' in kwargs and self.collection.slave_okay:
74-
kwargs['slave_okay'] = True
73+
7574
return DebugCursor(self, self.collection, *args, **kwargs)
7675

7776
def logging_wrapper(method):

0 commit comments

Comments
 (0)