8000 fix: Menus crashed when unexpected page content was present by fsbraun · Pull Request #8052 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

fix: Menus crashed when unexpected page content was present #8052

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 15 commits into from
Nov 4, 2024
Prev Previous commit
Next Next commit
Update placeholdermodel.py
  • Loading branch information
fsbraun authored Oct 31, 2024
commit 01f8634f8faba8e20f3f5a5532de4d6006876bb0
2 changes: 1 addition & 1 deletion cms/models/placeholdermodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ def get_last_plugin_position(self, language, parent=None):
def _shift_plugin_positions(self, language, start, offset=None):
if offset is None:
offset = self.get_last_plugin_position(language) or 0

self.get_plugins(language).filter(
position__gte=start
).update(position=models.F('position') + offset)
Expand Down
Loading
0