Merged feature in dev
authorBenoit C. Sirois <benoit.clennett-sirois@auf.org>
Mon, 11 Feb 2013 15:14:15 +0000 (10:14 -0500)
committerBenoit C. Sirois <benoit.clennett-sirois@auf.org>
Mon, 11 Feb 2013 15:14:15 +0000 (10:14 -0500)
1  2 
project/rh/views.py

@@@ -168,8 -172,10 +172,9 @@@ def rapports_employes_sans_contrat(requ
         groups.ADMINISTRATEURS in user_groups or\
         groups.DIRECTEUR_DE_BUREAU in user_groups:
          employe = get_employe_from_user(request.user)
-         lookup_params['poste__implantation__region'] = employe.implantation.region
+         lookup_params['poste__implantation__zone_administrative'] = \
+                 employe.implantation.zone_administrative
  
 -    
      dossiers = rh.Dossier.objects.sans_contrats_ou_echus(**lookup_params)
      dossiers_ids = [d.id for d in dossiers]
      employes = rh.Employe.objects.filter(id__in=dossiers_ids).distinct().count()