Skip to content

Commit e6c63ca

Browse files
committed
Remove F.as_mql is not longer used.
1 parent b43e8a7 commit e6c63ca

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

django_mongodb_backend/expressions/builtins.py

Lines changed: 0 additions & 9 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,
@@ -98,13 +97,6 @@ def expression_wrapper(self, compiler, connection):
9897
return self.expression.as_mql(compiler, connection)
9998

10099

101-
def f(self, compiler, connection, as_path=False):
102-
expression = self.resolve_expression(compiler.query)
103-
if as_path:
104-
return expression.as_mql(compiler, connection, as_path=as_path)
105-
return expression.as_mql(compiler, connection)
106-
107-
108100
def negated_expression(self, compiler, connection):
109101
return {"$not": expression_wrapper(self, compiler, connection)}
110102

@@ -227,7 +219,6 @@ def register_expressions():
227219
Exists.as_mql = exists
228220
ExpressionList.as_mql = process_lhs
229221
ExpressionWrapper.as_mql = expression_wrapper
230-
F.as_mql = f
231222
NegatedExpression.as_mql = negated_expression
232223
OrderBy.as_mql = order_by
233224
Query.as_mql = query

0 commit comments

Comments
 (0)