summaryrefslogtreecommitdiff
path: root/django/db/models/sql/compiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/models/sql/compiler.py')
-rw-r--r--django/db/models/sql/compiler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py
index 5f425a7543..4f75702dc7 100644
--- a/django/db/models/sql/compiler.py
+++ b/django/db/models/sql/compiler.py
@@ -1098,13 +1098,13 @@ class SQLUpdateCompiler(SQLCompiler):
class SQLAggregateCompiler(SQLCompiler):
- def as_sql(self, qn=None):
+ def as_sql(self, compiler=None):
"""
Creates the SQL for this query. Returns the SQL string and list of
parameters.
"""
- if qn is None:
- qn = self
+ if compiler is None:
+ compiler = self
sql, params = [], []
for annotation in self.query.annotation_select.values():