10000 fix: Port forward #7664 and #7657 by fsbraun · Pull Request #7695 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

fix: Port forward #7664 and #7657 #7695

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 11 commits into from
Nov 20, 2023
Prev Previous commit
Fix: Missing output_field
  • Loading branch information
fsbraun committed Nov 20, 2023
commit 9e1f1a52f3e7f28a59f59c8d47019eab1e96e5eb
7 changes: 6 additions & 1 deletion cms/models/pagemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,12 @@ def set_as_homepage(self, user=None):

def _get_path_sql_value(self, base_path=''):
if base_path:
new_path = Concat(models.Value(base_path), models.Value('/'), models.F('slug'))
new_path = Concat(
models.Value(base_path),
models.Value('/'),
models.F('slug'),
output_field=models.CharField(),
)
elif base_path is None:
new_path = None
else:
Expand Down
0