Commits

David Jean Louis  committed 7d17c72

fixed app_index dashboards

  • Participants
  • Parent commits e12743c

Comments (0)

Files changed (2)

File admin_tools/dashboard/models.py

     And then set the ``ADMIN_TOOLS_APP_INDEX_DASHBOARD`` settings variable to 
     point to your custom app index dashboard class.
     """
-    def __init__(self, **kwargs):
-        AppIndexDashboard.__init__(self, **kwargs)
+    def __init__(self, *args, **kwargs):
+        AppIndexDashboard.__init__(self, *args, **kwargs)
 
         # we disable title because its redundant with the model list module
         self.title = ''

File admin_tools/dashboard/templates/dashboard/dashboard.txt

     """
     Custom app index dashboard for {{ project }}.
     """ 
-    def __init__(self, **kwargs):
-        AppIndexDashboard.__init__(self, **kwargs)
+    def __init__(self, *args, **kwargs):
+        AppIndexDashboard.__init__(self, *args, **kwargs)
 
         # we disable title because its redundant with the model list module
         self.title = ''