boostup
[auf_rh_dae.git] / project / rh / managers.py
index def6658..d092a3f 100644 (file)
@@ -81,21 +81,21 @@ class PosteManager(SecurityManager):
     def ma_region_ou_service(self, user):
         return super(PosteManager, self).ma_region_ou_service(user).filter(actif=True)
 
-    #def get_query_set(self):
-    #    fkeys = (
-    #        'id_rh',
-    #        'responsable',
-    #        'implantation',
-    #        'implantation.bureau_rattachement',
-    #        'type_poste',
-    #        'service',
-    #        'classement_min',
-    #        'classement_max',
-    #        'valeur_point_min',
-    #        'valeur_point_max',
-    #    )
-    #    return super(PosteManager, self).get_query_set() \
-    #                                    .select_related(*fkeys).all()
+    def get_query_set(self):
+        fkeys = (
+            #'id_rh',
+            #'responsable',
+            #'implantation',
+            #'implantation.bureau_rattachement',
+            'type_poste',
+            #'service',
+            #'classement_min',
+            #'classement_max',
+            #'valeur_point_min',
+            #'valeur_point_max',
+        )
+        return super(PosteManager, self).get_query_set() \
+                                        .select_related(*fkeys).all()
 
 
 class DossierManager(SecurityManager):
@@ -105,6 +105,7 @@ class DossierManager(SecurityManager):
     def get_query_set(self):
         fkeys = (
             'poste',
+            'employe',
         )
         return super(DossierManager, self).get_query_set() \
                                         .select_related(*fkeys).all()