Skip to content

Commit

Permalink
fix: Workaround for
Browse files Browse the repository at this point in the history
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`).
  • Loading branch information
GaretJax committed Aug 16, 2024
1 parent 0a9f604 commit 312859d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions djangocms_blog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 312859d

Please sign in to comment.