Skip to content

Commit d867eb6

Browse files
authored
Remove unused F.as_mql()
1 parent daa9a8e commit d867eb6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

django_mongodb_backend/expressions.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
Exists,
1414
ExpressionList,
1515
ExpressionWrapper,
16-
F,
1716
NegatedExpression,
1817
OrderBy,
1918
RawSQL,
@@ -94,10 +93,6 @@ def expression_wrapper(self, compiler, connection):
9493
return self.expression.as_mql(compiler, connection)
9594

9695

97-
def f(self, compiler, connection): # noqa: ARG001
98-
return f"${self.name}"
99-
100-
10196
def negated_expression(self, compiler, connection):
10297
return {"$not": expression_wrapper(self, compiler, connection)}
10398

@@ -220,7 +215,6 @@ def register_expressions():
220215
Exists.as_mql = exists
221216
ExpressionList.as_mql = process_lhs
222217
ExpressionWrapper.as_mql = expression_wrapper
223-
F.as_mql = f
224218
NegatedExpression.as_mql = negated_expression
225219
OrderBy.as_mql = order_by
226220
Query.as_mql = query

0 commit comments

Comments
 (0)