Refs #25705 -- Fixed invalid SQL generated by SQLFuncMixin.as_sql() in custom_lookups tests.
Generated SQL was invalid because parameters are quoted by a driver.
This commit is contained in:
parent
a1f14ee3e5
commit
845042b3d9
|
@ -133,7 +133,7 @@ class Exactly(models.lookups.Exact):
|
|||
|
||||
class SQLFuncMixin:
|
||||
def as_sql(self, compiler, connection):
|
||||
return '%s()', [self.name]
|
||||
return '%s()' % self.name, []
|
||||
|
||||
@property
|
||||
def output_field(self):
|
||||
|
|
Loading…
Reference in New Issue