0
0
mirror of https://github.com/django/django.git synced 2024-11-21 19:09:18 +01: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 @cached_property
def is_collapsible(self): 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 False
return "collapse" in self.classes return "collapse" in self.classes