8000 chore: Prepare new dev branch by fsbraun · Pull Request #8223 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

chore: Prepare new dev branch #8223

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 18 commits into from
May 21, 2025
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: Do not assume page url cache to be filled
  • Loading branch information
fsbraun committed May 13, 2025
commit d1e5a3a77c6457277b3d1abf0850c74cfa74aeed
2 changes: 1 addition & 1 deletion cms/models/pagemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ def get_url_obj(self, language, fallback=True):
if fallback:
languages.extend(self.get_fallbacks(language))

if language not in self.urls_cache:
if self.urls_cache is None or language not in self.urls_cache:
# `get_page_from_request` will fill the cache only for the current language
# Here, we fully fill it and try again
self.urls_cache = {url.language: url for url in self.urls.all() if url.language in languages}
Expand Down
Loading
0