8000 chore: Improve pagecontent caching in page admin (esp. page tree) by fsbraun · Pull Request #8002 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

chore: Improve pagecontent caching in page admin (esp. page tree) #8002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typo
  • Loading branch information
Github Release Action committed Sep 17, 2024
commit e58c3a3fb0b1c36a3453ae7ef0c46efa9a65f088
2 changes: 1 addition & 1 deletion cms/templatetags/cms_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def get_page_display_name(cms_page):
language = lang
break
else:
for lang, item in cms_page.admin_content_cache.items(): # The content wass filled in the previous if
for lang, item in cms_page.admin_content_cache.items(): # The content was filled in the previous if clause
if not isinstance(item, EmptyPageContent):
language = lang
page_content = item
Expand Down
0