Ajout option candidat parcours stage 3600h.

This commit is contained in:
Claude Paroz 2023-01-17 12:00:14 +01:00
parent cafe0746c8
commit 8fe118e302
3 changed files with 3 additions and 2 deletions

View file

@ -75,7 +75,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='candidate',
name='option',
field=models.CharField(blank=True, choices=[('GEN', 'Généraliste'), ('ENF', 'Enfance'), ('PAG', 'Personnes âgées'), ('HAN', 'Handicap'), ('PE-5400h', 'Parcours Emploi 5400h.'), ('PE-3600h', 'Parcours Emploi 3600h.'), ('PS', 'Parcours stage 5400h.')], max_length=20, verbose_name='Option'),
field=models.CharField(blank=True, choices=[('GEN', 'Généraliste'), ('ENF', 'Enfance'), ('PAG', 'Personnes âgées'), ('HAN', 'Handicap'), ('PE-5400h', 'Parcours Emploi 5400h.'), ('PE-3600h', 'Parcours Emploi 3600h.'), ('PS-3600h', 'Parcours stage 3600h.'), ('PS', 'Parcours stage 5400h.')], max_length=20, verbose_name='Option'),
),
migrations.AlterField(
model_name='candidate',

View file

@ -25,6 +25,7 @@ OPTION_CHOICES = (
('HAN', 'Handicap'),
('PE-5400h', 'Parcours Emploi 5400h.'),
('PE-3600h', 'Parcours Emploi 3600h.'),
('PS-3600h', 'Parcours stage 3600h.'),
('PS', 'Parcours stage 5400h.'),
)

View file

@ -107,7 +107,7 @@ class InscriptionSummaryPDF(EpcBaseDocTemplate):
[work_label, candidate.get_ok('work_certificate')],
])
if candidate.option != 'PS':
if not candidate.option.startswith('PS'):
data.append(["Contrat de travail", candidate.get_ok('contract')])
data.append(["Promesse d'engagement", candidate.get_ok('promise')])
data.append(["Taux d'activité", candidate.activity_rate])