Kaydet (Commit) d6e2bbe7 authored tarafından Carl Meyer's avatar Carl Meyer

Fixed #23876 -- Removed dead code in SQLAggregateCompiler.

üst 51f2de15
......@@ -1104,14 +1104,11 @@ class SQLUpdateCompiler(SQLCompiler):
class SQLAggregateCompiler(SQLCompiler):
def as_sql(self, compiler=None):
def as_sql(self):
"""
Creates the SQL for this query. Returns the SQL string and list of
parameters.
"""
if compiler is None:
compiler = self
sql, params = [], []
for annotation in self.query.annotation_select.values():
agg_sql, agg_params = self.compile(annotation)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment