Reformat with black
This commit is contained in:
parent
d3d7f0e670
commit
90fecc56dd
@ -1193,9 +1193,7 @@ class BaseQuerySet(object):
|
|||||||
validate_read_preference("read_preference", read_preference)
|
validate_read_preference("read_preference", read_preference)
|
||||||
queryset = self.clone()
|
queryset = self.clone()
|
||||||
queryset._read_preference = read_preference
|
queryset._read_preference = read_preference
|
||||||
queryset._cursor_obj = (
|
queryset._cursor_obj = None # we need to re-create the cursor object whenever we apply read_preference
|
||||||
None
|
|
||||||
) # we need to re-create the cursor object whenever we apply read_preference
|
|
||||||
return queryset
|
return queryset
|
||||||
|
|
||||||
def scalar(self, *fields):
|
def scalar(self, *fields):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user