diff --git a/djangocms_blog/admin.py b/djangocms_blog/admin.py index d0b0c18..eb0d6bb 100755 --- a/djangocms_blog/admin.py +++ b/djangocms_blog/admin.py @@ -235,6 +235,12 @@ class BlogConfigAdmin(BaseAppHookConfig, TranslatableAdmin): }), ] + def save_model(self, request, obj, form, change): + if 'config.menu_structure' in form.changed_data: + from menus.menu_pool import menu_pool + menu_pool.clear(all=True) + return super(BlogConfigAdmin, self).save_model(request, obj, form, change) + admin.site.register(BlogCategory, BlogCategoryAdmin) admin.site.register(Post, PostAdmin) admin.site.register(BlogConfig, BlogConfigAdmin)