Skip to content

Commit be0de57

Browse files
committed
Fix reinitialization when having has subqueries.
1 parent 101fe23 commit be0de57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def pre_sql_setup(self, with_col_aliases=False):
261261
for query in self.subqueries or ():
262262
pipeline.extend(query.get_pipeline())
263263
# Clean added subqueries.
264-
self.subqueries = None
264+
self.subqueries = []
265265
pipeline.append({"$match": {"$expr": having}})
266266
self.aggregation_pipeline = pipeline
267267
self.annotations = {

0 commit comments

Comments
 (0)