Skip to content

Commit b194d31

Browse files
committed
revert unneded as_path=False in project fields.
1 parent c5e0e9e commit b194d31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_mongodb_backend/compiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,9 +714,9 @@ def get_project_fields(self, columns=None, ordering=None, force_expression=False
714714
value = (
715715
False if empty_result_set_value is NotImplemented else empty_result_set_value
716716
)
717-
fields[collection][name] = Value(value).as_mql(self, self.connection, as_path=False)
717+
fields[collection][name] = Value(value).as_mql(self, self.connection)
718718
except FullResultSet:
719-
fields[collection][name] = Value(True).as_mql(self, self.connection, as_path=False)
719+
fields[collection][name] = Value(True).as_mql(self, self.connection)
720720
# Annotations (stored in None) and the main collection's fields
721721
# should appear in the top-level of the fields dict.
722722
fields.update(fields.pop(None, {}))

0 commit comments

Comments
 (0)