diff --git a/admin_toolbox/templatetags/admin_toolbox_sidebar.py b/admin_toolbox/templatetags/admin_toolbox_sidebar.py index 8576e82..8638b47 100644 --- a/admin_toolbox/templatetags/admin_toolbox_sidebar.py +++ b/admin_toolbox/templatetags/admin_toolbox_sidebar.py @@ -13,9 +13,10 @@ @register.inclusion_tag('admin_toolbox/sidebar.html', takes_context=True) -def admin_sidebar_content(context, menu_name='default'): +def admin_sidebar_content(context, menu_name=None): request = context.request + menu_name = menu_name or context.get('toolbox_sidebar_name') or 'default' config = settings.sidebar.get(menu_name)