Skip to content

Commit 9830b06

Browse files
committed
Fix: rename wrapped to __wrapped to avoid collisions
1 parent c082f0d commit 9830b06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_mongodb_backend/query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ def get_pipeline(self):
9898
{
9999
"$lookup": {
100100
"from": self.compiler.collection_name,
101-
"as": "wrapped",
101+
"as": "__wrapped",
102102
"pipeline": pipeline,
103103
}
104104
},
105105
{
106106
"$replaceWith": {
107-
"$cond": [{"$eq": ["$wrapped", []]}, {}, {"$first": "$wrapped"}]
107+
"$cond": [{"$eq": ["$__wrapped", []]}, {}, {"$first": "$__wrapped"}]
108108
}
109109
},
110110
]

0 commit comments

Comments
 (0)