mirror of
https://github.com/django/django.git
synced 2025-07-05 18:29:11 +00:00
Removed an unused local var
This commit is contained in:
parent
fa7bc24671
commit
0ee8aa5c39
@ -314,11 +314,9 @@ class QuerySet(object):
|
|||||||
|
|
||||||
query = self.query.clone()
|
query = self.query.clone()
|
||||||
force_subq = query.low_mark != 0 or query.high_mark is not None
|
force_subq = query.low_mark != 0 or query.high_mark is not None
|
||||||
aggregate_names = []
|
|
||||||
for (alias, aggregate_expr) in kwargs.items():
|
for (alias, aggregate_expr) in kwargs.items():
|
||||||
query.add_aggregate(aggregate_expr, self.model, alias,
|
query.add_aggregate(aggregate_expr, self.model, alias,
|
||||||
is_summary=True)
|
is_summary=True)
|
||||||
aggregate_names.append(alias)
|
|
||||||
return query.get_aggregation(using=self.db, force_subq=force_subq)
|
return query.get_aggregation(using=self.db, force_subq=force_subq)
|
||||||
|
|
||||||
def count(self):
|
def count(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user