admin menu: remove all menu items

This commit is contained in:
Benjamin Dauvergne 2014-03-26 15:11:54 +01:00
parent 9bd45986bd
commit 96e93aabf8
1 changed files with 2 additions and 20 deletions

View File

@ -1,22 +1,4 @@
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from admin_tools.menu import items, Menu
from admin_tools.menu import Menu
class CustomMenu(Menu):
"""
Custom Menu for Portail Citoyen
"""
def __init__(self, **kwargs):
Menu.__init__(self, **kwargs)
self.children += [
items.MenuItem(_('Dashboard'), reverse('admin:index')),
items.Bookmarks(),
]
def init_with_context(self, context):
"""
Use this method if you need to access the request context.
"""
return super(CustomMenu, self).init_with_context(context)
pass