Skip to content

Commit 397fc8d

Browse files
committed
Remove skype line.
1 parent 82ebcf5 commit 397fc8d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

django_mongodb/lookups.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
from django.db.models.lookups import (
55
BuiltinLookup,
66
Contains,
7-
Exact, # , IExact
7+
Exact,
88
IntegerFieldOverflow,
99
IsNull,
1010
StartsWith,
1111
)
1212
from django.db.models.sql.where import AND, XOR, WhereNode
1313

14-
from ._helpers import is_direct_value, process_lhs, process_rhs, safe_regex
14+
from ._helpers import process_lhs, process_rhs, safe_regex
1515

1616

1717
def where_node(self, compiler, connection):
@@ -66,9 +66,6 @@ def where_node(self, compiler, connection):
6666
def exact(self, compiler, connection):
6767
lhs_mql = process_lhs(self, compiler, connection)
6868
value = process_rhs(self, compiler, connection)
69-
if is_direct_value(self.rhs):
70-
# return {lhs_mql: value}
71-
pass
7269
if isinstance(self.lhs, Col):
7370
lhs_mql = f"${lhs_mql}"
7471
return {"$expr": {"$eq": [lhs_mql, value]}}

0 commit comments

Comments
 (0)