menu and submenu now also uses djangos named urls and url-reverse

This commit is contained in:
fonfon committed 2014-07-10 23:29:06 +03:00
1 parent 809dc4130a
commit 5150efac5f
17 files changed
+68 -55

No files matched your search

+2 -2
View File
@@ -16,8 +16,8 @@ class ExpertsForm(forms.Form): # pylint: disable-msg=W0232
def init():
"""Initialize the module"""
menu = cfg.main_menu.find('/sys')
menu.add_item(_('Expert Mode'), 'icon-cog', '/sys/expert', 10)
menu = cfg.main_menu.get('system:index')
menu.add_urlname(_('Expert Mode'), 'icon-cog', 'expert_mode:index', 10)
@login_required