Skip to content

Commit e485f8c

Browse files
committed
return pre_sql_setup value.
1 parent 59d6f66 commit e485f8c

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
@@ -17,8 +17,8 @@ class SQLCompiler(compiler.SQLCompiler):
1717

1818
query_class = MongoQuery
1919

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

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

0 commit comments

Comments
 (0)