Skip to content

Commit 619db3b

Browse files
timgrahamWaVEV
authored andcommitted
edits
1 parent 1831ceb commit 619db3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django_mongodb/expressions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def case(self, compiler, connection):
4444

4545

4646
def col(self, compiler, connection): # noqa: ARG001
47+
# Add the column's collection's alias for columns in joined collections.
4748
prefix = f"{self.alias}." if self.alias != compiler.collection_name else ""
4849
return f"${prefix}{self.target.column}"
4950

0 commit comments

Comments
 (0)