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:
Mariusz Felisiak 2019-12-02 13:58:41 +01:00 committed by GitHub
parent a1f14ee3e5
commit 845042b3d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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):