Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions django_mongodb_backend/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
Exists,
ExpressionList,
ExpressionWrapper,
F,
NegatedExpression,
OrderBy,
RawSQL,
Expand Down Expand Up @@ -94,10 +93,6 @@ def expression_wrapper(self, compiler, connection):
return self.expression.as_mql(compiler, connection)


def f(self, compiler, connection): # noqa: ARG001
return f"${self.name}"


def negated_expression(self, compiler, connection):
return {"$not": expression_wrapper(self, compiler, connection)}

Expand Down Expand Up @@ -220,7 +215,6 @@ def register_expressions():
Exists.as_mql = exists
ExpressionList.as_mql = process_lhs
ExpressionWrapper.as_mql = expression_wrapper
F.as_mql = f
NegatedExpression.as_mql = negated_expression
OrderBy.as_mql = order_by
Query.as_mql = query
Expand Down