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 d1895514878ccc7dc60fc7cc1d43653ccf071e83
1 change: 1 addition & 0 deletions cms/models/placeholdermodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@
def _shift_plugin_positions(self, language, start, offset=None):
if offset is None:
offset = self.get_last_plugin_position(language) or 0

Check failure on line 744 in cms/models/placeholdermodel.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W293)

cms/models/placeholdermodel.py:744:1: W293 Blank line contains whitespace
self.get_plugins(language).filter(
position__gte=start
).update(position=models.F('position') + offset)
Expand Down
Loading
0