remove recent actions
[auf_rh_dae.git] / project / dashboard.py
index 6f9bc0a..4bcbb6d 100644 (file)
@@ -34,7 +34,9 @@ class CustomIndexDashboard(Dashboard):
             'project.recrutement.models.*',
             'project.rh.models.AyantDroit',
             'project.rh.models.Dossier',
+            'project.rh.models.DossierInactif',
             'project.rh.models.Employe',
+            'project.rh.models.EmployeInactif',
             'project.rh.models.Poste',
             ),
         ))
@@ -57,6 +59,7 @@ class CustomIndexDashboard(Dashboard):
             'project.rh.models.TypeRemuneration',
             'project.rh.models.ValeurPoint',
             ),
+            exclude=('django.contrib.*',),
         ))
 
         # append an app list module for "Inter-systèmes"
@@ -76,7 +79,7 @@ class CustomIndexDashboard(Dashboard):
         ))
 
         # append a recent actions module
-        self.children.append(modules.RecentActions(_('Recent Actions'), 5))
+        #self.children.append(modules.RecentActions(_('Recent Actions'), 5))
 
 
 class CustomAppIndexDashboard(AppIndexDashboard):
@@ -98,11 +101,11 @@ class CustomAppIndexDashboard(AppIndexDashboard):
             # append a model list module and a recent actions module
             self.children += [
                 modules.ModelList(self.app_title,self.models),
-                modules.RecentActions(
-                    _('Recent Actions'),
-                    include_list=self.get_app_content_types(),
-                    limit=5
-                )
+                #modules.RecentActions(
+                #    _('Recent Actions'),
+                #    include_list=self.get_app_content_types(),
+                #    limit=5
+                #)
             ]
 
             return
@@ -113,7 +116,9 @@ class CustomAppIndexDashboard(AppIndexDashboard):
             models=(
             'project.rh.models.AyantDroit',
             'project.rh.models.Dossier',
+            'project.rh.models.DossierInactif',
             'project.rh.models.Employe',
+            'project.rh.models.EmployeInactif',
             'project.rh.models.Poste',
             ),
         ))
@@ -147,8 +152,8 @@ class CustomAppIndexDashboard(AppIndexDashboard):
         ))
 
         # append a recent actions module
-        self.children.append(modules.RecentActions(
-            _('Recent Actions'),
-            include_list=self.get_app_content_types(),
-            limit=5
-        ))
+        #self.children.append(modules.RecentActions(
+        #    _('Recent Actions'),
+        #    include_list=self.get_app_content_types(),
+        #    limit=5
+        #))