Skip to content

Commit 02863b3

Browse files
committed
return pre_sql_setup value.
1 parent 71bd09f commit 02863b3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

django_mongodb/compiler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class SQLCompiler(compiler.SQLCompiler):
1818

1919
query_class = MongoQuery
2020

21-
def pre_sql_setup(self):
22-
super().pre_sql_setup()
21+
def pre_sql_setup(self, *args, **kargs):
22+
pre_setup = super().pre_sql_setup(*args, **kargs)
2323
self.annotations = {}
2424
group = {}
2525
group_expressions = set()
@@ -74,6 +74,8 @@ def pre_sql_setup(self):
7474
else:
7575
self._group_pipeline = None
7676

77+
return pre_setup
78+
7779
def execute_sql(
7880
self, result_type=MULTI, chunked_fetch=False, chunk_size=GET_ITERATOR_CHUNK_SIZE
7981
):

0 commit comments

Comments
 (0)