Skip to content

Commit 25077f0

Browse files
committed
Move docstring
1 parent a80f61f commit 25077f0

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

django_mongodb_backend/expressions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ def query(self, compiler, connection, get_wrapping_pipeline=None):
120120
},
121121
}
122122
if get_wrapping_pipeline:
123+
# The results from some lookups must be converted to a list of values.
124+
# The output is compressed with an aggregation pipeline.
123125
wrapping_result_pipeline = get_wrapping_pipeline(
124126
subquery_compiler, connection, field_name, expr
125127
)

django_mongodb_backend/fields/array.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,6 @@ class ArrayOverlap(ArrayRHSMixin, FieldGetDbPrepValueMixin, Lookup):
279279
lookup_name = "overlap"
280280

281281
def get_subquery_wrapping_pipeline(self, compiler, connection, field_name, expr):
282-
# The result must be a list of values.
283-
# The output is compressed with an aggregation pipeline.
284282
return [
285283
{
286284
"$facet": {

django_mongodb_backend/lookups.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ def in_(self, compiler, connection):
4646

4747

4848
def get_subquery_wrapping_pipeline(self, compiler, connection, field_name, expr): # noqa: ARG001
49-
# The result must be a list of values.
50-
# The output is compressed with an aggregation pipeline.
5149
return [
5250
{
5351
"$facet": {

0 commit comments

Comments
 (0)