Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed an unused local var

  • Loading branch information...
commit 0ee8aa5c3908e2f8f8408083ff213e6e5eed4d4d 1 parent fa7bc24
@alex alex authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  django/db/models/query.py
View
2  django/db/models/query.py
@@ -314,11 +314,9 @@ def aggregate(self, *args, **kwargs):
query = self.query.clone()
force_subq = query.low_mark != 0 or query.high_mark is not None
- aggregate_names = []
for (alias, aggregate_expr) in kwargs.items():
query.add_aggregate(aggregate_expr, self.model, alias,
is_summary=True)
- aggregate_names.append(alias)
return query.get_aggregation(using=self.db, force_subq=force_subq)
def count(self):
Please sign in to comment.
Something went wrong with that request. Please try again.