From 125f659530eda59c9c44fd8980b813acae106aba Mon Sep 17 00:00:00 2001 From: Anna Date: Fri, 13 Dec 2024 09:32:02 -0500 Subject: [PATCH] PERF401 --- cms/models.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cms/models.py b/cms/models.py index 32d2bfd91..92aba4cbb 100644 --- a/cms/models.py +++ b/cms/models.py @@ -1248,11 +1248,13 @@ def get_context(self, request, *args, **kwargs): ) custom_tabs = [] for tab in self.custom_tabs: - custom_tabs.append({ - "title": tab.value["title"], - "slug": tab.value["href_slug"], - "content": tab.value["content"] - }) + custom_tabs.append( # noqa: PERF401 + { + "title": tab.value["title"], + "slug": tab.value["href_slug"], + "content": tab.value["content"] + } + ) return { **super().get_context(request, *args, **kwargs), **get_base_context(request),