1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Refs #23968 -- Removed unnecessary list comprehension in contrib.admin.helpers.

This commit is contained in:
John Parton 2024-11-05 11:05:13 -06:00 committed by Sarah Boyce
parent 661dfdd598
commit 042b381e2e

View File

@ -121,7 +121,7 @@ class Fieldset:
@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