From 312859d4525e7837bbdca91abccc99ff802b9fa3 Mon Sep 17 00:00:00 2001 From: Jonathan Stoppani Date: Fri, 16 Aug 2024 19:58:15 +0200 Subject: [PATCH] fix: Workaround for This is a workaround as the CMS expects such an attribute, but I have no idea under what conditions it has to be set to True or False. Maybe the MENU_TYPE of the Blog AppConfig? I tried both True and False without any noticeable difference (at least while keeping `BlogConfig.menu_structure` set to `MENU_TYPE_COMPLETE`). --- djangocms_blog/models.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/djangocms_blog/models.py b/djangocms_blog/models.py index 1ee040f6..24cad4fc 100644 --- a/djangocms_blog/models.py +++ b/djangocms_blog/models.py @@ -578,6 +578,13 @@ class Meta: objects = GenericDateTaggedManager() admin_manager = AdminDateTaggedManager() + @property + def in_navigation(self): + # TODO: This is a workaround as the CMS expects such an attribute, but I have no idea + # under what conditions it has to be set to True or False. Maybe the MENU_TYPE of the + # Blog AppConfig? + return True + @property def author(self): return self.post.author