mirror of
https://github.com/django/django.git
synced 2025-10-28 16:16:12 +00:00
Fixed #28249 -- Removed unnecessary dict.keys() calls.
iter(dict) is equivalent to iter(dict.keys()).
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user