Skip to content

Commit 63fc99b

Browse files
authored
Update json.py remove assert.
1 parent de42547 commit 63fc99b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

django_mongodb/fields/json.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def has_key_lookup(self, compiler, connection):
6767
for path in paths:
6868
keys.append(_has_key_predicate(path, lhs))
6969
if self.mongo_operator is None:
70-
assert len(keys) == 1
7170
return keys[0]
7271
return {self.mongo_operator: keys}
7372

0 commit comments

Comments
 (0)