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):