Skip to content
Browse files

There's no need to do `list(dict.keys())` list(dict)` is enough.

  • Loading branch information...
1 parent 4e7f04c commit a351e383b664d4b2da6d49a50c9a3c37ae2c5848 @alex alex committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/views/
2 django/contrib/admin/views/
@@ -148,7 +148,7 @@ def get_query_string(self, new_params=None, remove=None):
if remove is None: remove = []
p = self.params.copy()
for r in remove:
- for k in list(p.keys()):
+ for k in list(p):
if k.startswith(r):
del p[k]
for k, v in new_params.items():

0 comments on commit a351e38

Please sign in to comment.
Something went wrong with that request. Please try again.