Skip to content

Commit

Permalink
PERF401
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Dec 13, 2024
1 parent b77855e commit 125f659
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions cms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 125f659

Please sign in to comment.