Skip to content

Commit d0a138e

Browse files
committed
Remove wrapping function
1 parent 2d6c0b5 commit d0a138e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

django_mongodb_backend/functions.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ def func(self, compiler, connection):
107107
return {f"${operator}": lhs_mql}
108108

109109

110-
def json_array(self, compiler, connection, **extra_context): # noqa: ARG001
111-
return process_lhs(self, compiler, connection)
112-
113-
114110
def left(self, compiler, connection):
115111
return self.get_substr().as_mql(compiler, connection)
116112

@@ -243,7 +239,7 @@ def register_functions():
243239
Cot.as_mql = cot
244240
Extract.as_mql = extract
245241
Func.as_mql = func
246-
JSONArray.as_mql = json_array
242+
JSONArray.as_mql = process_lhs
247243
Left.as_mql = left
248244
Length.as_mql = length
249245
Log.as_mql = log

0 commit comments

Comments
 (0)