Skip to content

Commit

Permalink
Fix: Do not get app_config from page content
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Jan 9, 2024
1 parent 6491024 commit 72b968f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion djangocms_blog/cms_toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ def populate(self):
return # pragma: no cover

current_content = getattr(self.request, get_setting("CURRENT_POST_IDENTIFIER"), self.toolbar.get_object())
if isinstance(current_content, PageContent):
current_content = None
current_config = getattr(
self.request, get_setting("CURRENT_NAMESPACE"), current_content.app_config if current_content else None
self.request, get_setting("CURRENT_NAMESPACE"), getattr(current_content, "app_config", None)
)
with override(self.current_lang):
menu_name = _("Blog")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{% load cms_tags %}
{% placeholder 'media' %}
{% placeholder 'content' %}

0 comments on commit 72b968f

Please sign in to comment.