Fixed missing context argument in get_admin_menu() calls

This commit is contained in:
David Jean Louis 2012-10-22 20:51:46 +02:00
parent 809f106a76
commit d0981ab890
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ def admin_tools_render_menu(context, menu=None):
``get_admin_menu`` function.
"""
if menu is None:
menu = get_admin_menu()
menu = get_admin_menu(context)
menu.init_with_context(context)
has_bookmark_item = False
@ -76,7 +76,7 @@ def admin_tools_render_menu_css(context, menu=None):
retrieved with the ``get_admin_menu`` function.
"""
if menu is None:
menu = get_admin_menu()
menu = get_admin_menu(context)
context.update({
'template': 'admin_tools/menu/css.html',