mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
Fixed #28249 -- Removed unnecessary dict.keys() calls.
iter(dict) is equivalent to iter(dict.keys()).
This commit is contained in:
parent
2a5708a304
commit
21046e7773
43 changed files with 84 additions and 85 deletions
|
@ -334,7 +334,7 @@ class QuerySet:
|
|||
query.add_annotation(aggregate_expr, alias, is_summary=True)
|
||||
if not query.annotations[alias].contains_aggregate:
|
||||
raise TypeError("%s is not an aggregate expression" % alias)
|
||||
return query.get_aggregation(self.db, kwargs.keys())
|
||||
return query.get_aggregation(self.db, kwargs)
|
||||
|
||||
def count(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue