diff --git a/django/contrib/admin/helpers.py b/django/contrib/admin/helpers.py index d28a382814..51450d1d9e 100644 --- a/django/contrib/admin/helpers.py +++ b/django/contrib/admin/helpers.py @@ -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