diff options
| author | Carl Meyer <carl@oddbird.net> | 2014-11-20 04:18:08 -0700 |
|---|---|---|
| committer | Carl Meyer <carl@oddbird.net> | 2014-11-20 04:18:08 -0700 |
| commit | d6e2bbe734fe65f1cec825b9c507ad7bbb09f2f0 (patch) | |
| tree | fa099559b940797b00d34764483e3f9e60be874d | |
| parent | 51f2de1530a49ef9c2f315025b47e107295cd38f (diff) | |
Fixed #23876 -- Removed dead code in SQLAggregateCompiler.
| -rw-r--r-- | django/db/models/sql/compiler.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index 30e9b241c8..0b75a9a7b4 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -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) |
