mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +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
|
@ -125,7 +125,7 @@ def file_upload_getlist_count(request):
|
|||
"""
|
||||
file_counts = {}
|
||||
|
||||
for key in request.FILES.keys():
|
||||
for key in request.FILES:
|
||||
file_counts[key] = len(request.FILES.getlist(key))
|
||||
return JsonResponse(file_counts)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue