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:
parent
661dfdd598
commit
042b381e2e
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user