This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -383,8 +383,8 @@ def liste_employe(request):
|
|||||||
projets = [
|
projets = [
|
||||||
", ".join([
|
", ".join([
|
||||||
a.projet.nom_projet for a in Affectation.objects.filter(
|
a.projet.nom_projet for a in Affectation.objects.filter(
|
||||||
employe=employe,
|
employe=employe
|
||||||
date_fin_daffectation__gte=timezone.now().date()
|
#, date_fin_daffectation__gte=timezone.now().date()
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
@@ -408,14 +408,14 @@ def liste_employe(request):
|
|||||||
"salaire_mensuel": contrat.salaire_mensuel,
|
"salaire_mensuel": contrat.salaire_mensuel,
|
||||||
"statut": contrat.statut,
|
"statut": contrat.statut,
|
||||||
"fichier_contrat": contrat.fichier_contrat.url if contrat.fichier_contrat else "",
|
"fichier_contrat": contrat.fichier_contrat.url if contrat.fichier_contrat else "",
|
||||||
} for contrat in Contrat.objects.filter(employe=employe, statut='actif')
|
} for contrat in Contrat.objects.filter(employe=employe)#, statut='actif')
|
||||||
]
|
]
|
||||||
|
|
||||||
affectations = [
|
affectations = [
|
||||||
{**model_to_dict(affectation), "projet": affectation.projet.nom_projet}
|
{**model_to_dict(affectation), "projet": affectation.projet.nom_projet}
|
||||||
for affectation in Affectation.objects.filter(
|
for affectation in Affectation.objects.filter(
|
||||||
employe=employe,
|
employe=employe
|
||||||
date_fin_daffectation__gte=timezone.now().date()
|
#, date_fin_daffectation__gte=timezone.now().date()
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user