Skip to content

Commit

Permalink
Removed an unused local var
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Sep 8, 2013
1 parent fa7bc24 commit 0ee8aa5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions django/db/models/query.py
Expand Up @@ -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):
Expand Down

0 comments on commit 0ee8aa5

Please sign in to comment.