Skip to content

Commit cc0b716

Browse files
committed
update comment
1 parent 282324c commit cc0b716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb_backend/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def _build_aggregation_pipeline(self, ids, group):
239239
pipeline = []
240240
if not ids:
241241
pipeline.append({"$group": {"_id": None, **group}})
242-
# If ids is empty, a global group-by is applied
242+
# If there are no ids and no having clause, apply a global aggregation
243243
self.wrap_for_global_aggregation = not bool(self.having)
244244
else:
245245
group["_id"] = ids

0 commit comments

Comments
 (0)