+ user_groups = request.user.groups.all()
+ if groups.grp_correspondants_rh in user_groups or\
+ groups.grp_administrateurs in user_groups or\
+ groups.grp_directeurs_bureau in user_groups:
+ employe = get_employe_from_user(request.user)
+ regions = ref.Region.objects.filter(id=employe.implantation.region.id)
+ implantations = ref.Implantation.objects.filter(region=employe.implantation.region)
+ else:
+ regions = ref.Region.objects.all()
+ implantations = ref.Implantation.objects.all()
+