Fixed #23876 -- Removed dead code in SQLAggregateCompiler.

This commit is contained in:
Carl Meyer 2014-11-20 04:18:08 -07:00
parent 51f2de1530
commit d6e2bbe734
1 changed files with 1 additions and 4 deletions

View File

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