Commits

Ihar Niamilentsau  committed 14dbd31

rename

  • Participants
  • Parent commits 8fc2a85

Comments (0)

Files changed (4)

File admin_tools/adminboard/__init__.py

-from admin_tools.adminboard.adminboards import *
+from admin_tools.adminboard.dashboards import *
 from admin_tools.adminboard.registry import *

File admin_tools/adminboard/registry.py

     registry = {}
 
     def register(cls, klass, app_name):
-        from admin_tools.adminboard.adminboards import Dashboard
+        from admin_tools.adminboard.dashboards import Dashboard
         if not issubclass(klass, Dashboard):
             raise ValueError('%s is not an instance of Dashboard' % klass)
         if app_name in cls.registry:

File admin_tools/adminboard/utils.py

     return _get_dashboard_cls(getattr(
         settings,
         'ADMIN_TOOLS_INDEX_DASHBOARD',
-        'admin_tools.adminboard.adminboards.DefaultIndexDashboard'
+        'admin_tools.adminboard.dashboards.DefaultIndexDashboard'
     ), context)()
 
 def get_app_index_dashboard(context):
     return _get_dashboard_cls(getattr(
         settings,
         'ADMIN_TOOLS_APP_INDEX_DASHBOARD',
-        'admin_tools.adminboard.adminboards.DefaultAppIndexDashboard'
+        'admin_tools.adminboard.dashboards.DefaultAppIndexDashboard'
     ), context)(app_title, model_list)

File admin_tools/utils.py

     dashboard_cls = getattr(
         settings,
         'ADMIN_TOOLS_INDEX_DASHBOARD',
-        'admin_tools.adminboard.adminboards.DefaultIndexDashboard'
+        'admin_tools.adminboard.dashboards.DefaultIndexDashboard'
     )
 
     if type(dashboard_cls) is types.DictType: