mirror of
https://github.com/django/django.git
synced 2024-12-22 09:05:43 +00:00
Refs #23968 -- Removed unnecessary list comprehension in contrib.admin.helpers.
This commit is contained in:
parent
661dfdd598
commit
042b381e2e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user