8000 Fixed #6585 -- Added missing clear cache for menu when page is created by bplociennik · Pull Request #6584 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

Fixed #6585 -- Added missing clear cache for menu when page is created #6584

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
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

8000 Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cms/admin/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ def save(self, *args, **kwargs):
# its the first page. publish it right away
new_page.publish(translation.language)
new_page.set_as_homepage(self._user)

new_page.clear_cache(menu=True)
return new_page


Expand Down
0