We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0493bd3 commit cb05fc7Copy full SHA for cb05fc7
django_mongodb/compiler.py
@@ -27,7 +27,9 @@ def execute_sql(
27
columns = self.get_columns()
28
try:
29
# Avoid $project fields in case of query.annotations is not defined.
30
- query = self.build_query(columns if self.query.annotations else None)
+ query = self.build_query(
31
+ columns if self.query.annotations or not self.query.default_cols else None
32
+ )
33
except EmptyResultSet:
34
return iter([]) if result_type == MULTI else None
35
0 commit comments