diff --git a/djangocms_blog/cms_menus.py b/djangocms_blog/cms_menus.py index a31449b..a56f591 100644 --- a/djangocms_blog/cms_menus.py +++ b/djangocms_blog/cms_menus.py @@ -12,7 +12,7 @@ from menus.menu_pool import menu_pool from .cms_appconfig import BlogConfig from .models import BlogCategory, Post -from .settings import MENU_TYPE_CATEGORIES, MENU_TYPE_COMPLETE, MENU_TYPE_POSTS, get_setting +from .settings import MENU_TYPE_NONE, MENU_TYPE_CATEGORIES, MENU_TYPE_COMPLETE, MENU_TYPE_POSTS, get_setting class BlogCategoryMenu(CMSAttachMenu): @@ -59,6 +59,8 @@ class BlogCategoryMenu(CMSAttachMenu): categories_menu = True if config and config.menu_structure in (MENU_TYPE_COMPLETE, MENU_TYPE_POSTS): posts_menu = True + if config and config.menu_structure in (MENU_TYPE_NONE, ): + return nodes used_categories = [] if posts_menu: