Replaced QueryWrapper single usage with RawSQL.

This commit is contained in:
Simon Charette 2019-11-18 04:45:24 -05:00 committed by Mariusz Felisiak
parent 8685e764ef
commit 3ca77e2b84
2 changed files with 2 additions and 18 deletions

View file

@ -30,20 +30,6 @@ def subclasses(cls):
yield from subclasses(subclass)
class QueryWrapper:
"""
A type that indicates the contents are an SQL fragment and the associate
parameters. Can be used to pass opaque data to a where-clause, for example.
"""
contains_aggregate = False
def __init__(self, sql, params):
self.data = sql, list(params)
def as_sql(self, compiler=None, connection=None):
return self.data
class Q(tree.Node):
"""
Encapsulate filters as objects that can then be combined logically (using