Skip to content

Commit

Permalink
Refs #23968 -- Removed unnecessary list comprehension in contrib.admi…
Browse files Browse the repository at this point in the history
…n.helpers.
  • Loading branch information
john-parton authored and sarahboyce committed Nov 7, 2024
1 parent 661dfdd commit 042b381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/admin/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def media(self):

@cached_property
def is_collapsible(self):
if any([field in self.fields for field in self.form.errors]):
if any(field in self.fields for field in self.form.errors):
return False
return "collapse" in self.classes

Expand Down

0 comments on commit 042b381

Please sign in to comment.