Commits

Mikhail Korobov  committed f0988b5

Make generated custom menu match default menu

  • Participants
  • Parent commits a3301e5

Comments (0)

Files changed (1)

File admin_tools/menu/templates/admin_tools/menu/menu.txt

     """
     def __init__(self, **kwargs):
         Menu.__init__(self, **kwargs)
-        self.children.append(items.MenuItem(
-            title=_('Dashboard'),
-            url=reverse('admin:index')
-        ))
-        self.children.append(items.AppList(
-            title=_('Applications'),
-            exclude_list=('django.contrib',)
-        ))
-        self.children.append(items.AppList(
-            title=_('Administration'),
-            include_list=('django.contrib',)
-        ))
+        self.children += [
+            items.MenuItem(_('Dashboard'), reverse('admin:index')),
+            items.Bookmarks(),
+            items.AppList(
+                _('Applications'),
+                exclude_list=('django.contrib',)
+            ),
+            items.AppList(
+                _('Administration'),
+                include_list=('django.contrib',)
+            )
+        ]
 
     def init_with_context(self, context):
         """