@@ -55,7 +55,7 @@ def process_band_indices(self, only_lhs=False):
5555
5656 def get_db_prep_lookup (self , value , connection ):
5757 # get_db_prep_lookup is called by process_rhs from super class
58- return ("%s" , [ connection .ops .Adapter (value )] )
58+ return ("%s" , ( connection .ops .Adapter (value ),) )
5959
6060 def process_rhs (self , compiler , connection ):
6161 if isinstance (self .rhs , Query ):
@@ -284,7 +284,7 @@ def process_rhs(self, compiler, connection):
284284 elif not isinstance (pattern , str ) or not self .pattern_regex .match (pattern ):
285285 raise ValueError ('Invalid intersection matrix pattern "%s".' % pattern )
286286 sql , params = super ().process_rhs (compiler , connection )
287- return sql , [ * params , pattern ]
287+ return sql , ( * params , pattern )
288288
289289
290290@BaseSpatialField .register_lookup
@@ -352,7 +352,7 @@ def process_rhs(self, compiler, connection):
352352 dist_sql , dist_params = self .process_distance (compiler , connection )
353353 self .template_params ["value" ] = dist_sql
354354 rhs_sql , params = super ().process_rhs (compiler , connection )
355- return rhs_sql , params + dist_params
355+ return rhs_sql , ( * params , * dist_params )
356356
357357
358358class DistanceLookupFromFunction (DistanceLookupBase ):
@@ -367,7 +367,7 @@ def as_sql(self, compiler, connection):
367367 dist_sql , dist_params = self .process_distance (compiler , connection )
368368 return (
369369 "%(func)s %(op)s %(dist)s" % {"func" : sql , "op" : self .op , "dist" : dist_sql },
370- params + dist_params ,
370+ ( * params , * dist_params ) ,
371371 )
372372
373373
0 commit comments