From 4a665d2324fcff92622f460a151bbb3456676bde Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Fri, 23 Dec 2022 08:27:50 +0100 Subject: [PATCH] Corr. autres occurrences label work_certificate --- candidats/pdf.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/candidats/pdf.py b/candidats/pdf.py index dfc8abe..ddb778e 100644 --- a/candidats/pdf.py +++ b/candidats/pdf.py @@ -82,6 +82,7 @@ class InscriptionSummaryPDF(EpcBaseDocTemplate): 'statut: {0}'.format(candidate.get_diploma_status_display())] ] + work_label = candidate._meta.get_field('work_certificate').verbose_name if candidate.diploma == 1: # CFC ASE data.append([ 'Evaluation du dernier stage ASE et/ou dernier rapport de formation', @@ -90,19 +91,17 @@ class InscriptionSummaryPDF(EpcBaseDocTemplate): elif candidate.diploma == 2: # CFC autre domaine data.append([ - "Bilan de l'activité professionnelle", candidate.get_ok('work_certificate') + work_label, candidate.get_ok('work_certificate') ]) elif candidate.diploma == 3: # Matur, Ecole cult. générale data.extend([ ["Certif. de travail/stage de 400h. dans n'importe quel domaine", candidate.get_ok('certif_of_400_general')], - ["Bilan de l'activité professionnelle", - candidate.get_ok('work_certificate')], + [work_label, candidate.get_ok('work_certificate')], ]) elif candidate.diploma == 4: # Portfolio - work_label = candidate._meta.get_field('work_certificate').verbose_name data.extend([ ["Certif. de travail/stage de 400h. dans n'importe quel domaine", candidate.get_ok('certif_of_400_general')],