Skip to content

Commit 208f334

Browse files
committed
Support operator as string
1 parent 65f22e6 commit 208f334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb_backend/expressions/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ class CombinedSearchExpression(SearchExpression):
850850

851851
def __init__(self, lhs, operator, rhs):
852852
self.lhs = lhs
853-
self.operator = operator
853+
self.operator = Operator(operator) if not isinstance(operator, Operator) else operator
854854
self.rhs = rhs
855855

856856
def get_source_expressions(self):

0 commit comments

Comments
 (0)