boostrap
[ifgu.git] / project / dashboard.py
1 # -*- encoding: utf-8 -*
2
3 from django.utils.translation import ugettext_lazy as _
4 from admin_tools.dashboard import modules, Dashboard
5
6
7 class CustomIndexDashboard(Dashboard):
8 """
9 Custom index dashboard
10 """
11
12 def init_with_context(self, context):
13
14 # append an app list module for "Applications"
15 self.children.append(modules.AppList(
16 _('Applications'),
17 exclude=('django.contrib.*',),
18 ))
19
20 # append an app list module for "Administration"
21 self.children.append(modules.AppList(
22 _('Administration'),
23 models=('django.contrib.*',),
24 ))
25
26 # append a recent actions module
27 self.children.append(modules.RecentActions(_('Recent Actions'), 5))