Commits

David Jean Louis committed 3ff56f0

uniformise kwargs names for LinkListDashboardModule

  • Participants
  • Parent commits b750d9a

Comments (0)

Files changed (2)

File admin_tools/dashboard/default_dashboard.py

             draggable=False,
             deletable=False,
             collapsible=False,
-            link_list=[
+            entries=[
                 {
                     'title': _('Return to site'),
                     'url': '/',
         # append another link list module for "support". 
         self.append(LinkListDashboardModule(
             title=_('Support'),
-            link_list=[
+            entries=[
                 {
                     'title': _('Django documentation'),
                     'url': 'http://docs.djangoproject.com/',

File admin_tools/dashboard/models.py

         self.pre_content = kwargs.get('pre_content')
         self.post_content = kwargs.get('post_content')
         self.template = kwargs.get('template', 'dashboard/module.html')
-        self.entries = []
+        self.entries = kwargs.get('entries', [])
 
     def render(self, request):
         pass
         self.template = kwargs.get('template',
                                    'dashboard/modules/link_list.html')
         self.layout = kwargs.get('layout', 'stacked')
-        self.entries = kwargs.get('link_list', [])
 
 
 class AppListDashboardModule(DashboardModule, AppListElementMixin):