Statistiques: nombre de fiches mises à jour.
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / menu.py
CommitLineData
9c29b8d4
EMS
1# coding: utf-8
2
3from django.core.urlresolvers import reverse
4from django.utils.translation import ugettext_lazy as _
5from admin_tools.menu import items, Menu
6
7class CustomMenu(Menu):
8 """
9 Custom Menu for sep admin site.
10 """
11 def __init__(self, **kwargs):
12 Menu.__init__(self, **kwargs)
13 self.children.append(items.MenuItem(
14 title=_('Dashboard'),
15 url=reverse('admin:index')
16 ))
17 self.children.append(items.AppList(
18 title=_('Applications'),
19 exclude_list=('django.contrib',)
20 ))
21 self.children.append(items.AppList(
22 title=_('Administration'),
23 include_list=('django.contrib',)
24 ))
25 self.children.append(items.MenuItem(
26 title='Statistiques',
27 url=reverse('stats')
28 ))
29
30 def init_with_context(self, context):
31 """
32 Use this method if you need to access the request context.
33 """
34 pass