1
0
mirror of https://github.com/django/django.git synced 2025-04-04 21:46:40 +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 Ryan Cheley
parent 2a348a2836
commit 023ae04df9

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