@@ -309,19 +309,18 @@ def register_nodes():
309309
310310
311311class MongoQuerySet (QuerySet ):
312- def raw_mql (self , raw_query , params = (), translations = None , using = None ):
312+ def raw_mql (self , raw_query , translations = None , using = None ):
313313 return MongoRawQuerySet (
314314 raw_query ,
315315 model = self .model ,
316- params = params ,
317316 translations = translations ,
318317 using = using ,
319318 )
320319
321320
322321class MongoRawQuery (RawQuery ):
323- def __init__ (self , sql , using , model , params = () ):
324- super ().__init__ (sql , using , params )
322+ def __init__ (self , sql , using , model ):
323+ super ().__init__ (sql , using )
325324 self .model = model
326325
327326 def __iter__ (self ):
@@ -346,7 +345,6 @@ def __init__(
346345 raw_query ,
347346 model = None ,
348347 query = None ,
349- params = (),
350348 translations = None ,
351349 using = None ,
352350 hints = None ,
@@ -359,9 +357,7 @@ def __init__(
359357 hints = hints ,
360358 translations = translations ,
361359 )
362- self .query = query or MongoRawQuery (
363- sql = raw_query , using = self .db , model = self .model , params = params
364- )
360+ self .query = query or MongoRawQuery (sql = raw_query , using = self .db , model = self .model )
365361
366362 def iterator (self ):
367363 yield from MongoRawModelIterable (self )
0 commit comments