Adaptations demandées modèles candidats
This commit is contained in:
parent
fdb906519f
commit
83652a92f9
6 changed files with 51 additions and 29 deletions
|
|
@ -89,8 +89,8 @@ class CandidateAdmin(admin.ModelAdmin):
|
|||
'classes': ('collapse',),
|
||||
'fields': (('diploma', 'diploma_detail', 'diploma_status'),
|
||||
('registration_form', 'has_photo', 'certificate_of_payement', 'cv', 'police_record', 'reflexive_text',
|
||||
'marks_certificate', 'residence_permits', 'aes_accords'),
|
||||
('certif_of_800_childhood', 'certif_of_800_general', 'work_certificate'),
|
||||
'residence_permits', 'aes_accords'),
|
||||
('certif_of_400_general', 'work_certificate'),
|
||||
('promise', 'contract', 'activity_rate'),
|
||||
('inscr_other_school',),
|
||||
('interview', 'examination_teacher'),
|
||||
|
|
|
|||
34
candidats/migrations/0012_model_adapts_dec_2022.py
Normal file
34
candidats/migrations/0012_model_adapts_dec_2022.py
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('candidats', '0011_room_length_25'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='candidate',
|
||||
name='certif_of_800_childhood',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='candidate',
|
||||
name='marks_certificate',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='candidate',
|
||||
old_name='certif_of_800_general',
|
||||
new_name='certif_of_400_general',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='candidate',
|
||||
name='certif_of_400_general',
|
||||
field=models.BooleanField(default=False, verbose_name='Attest. 400h. général'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='candidate',
|
||||
name='work_certificate',
|
||||
field=models.BooleanField(default=False, verbose_name='Préavis formatif'),
|
||||
),
|
||||
]
|
||||
|
|
@ -98,8 +98,7 @@ class Candidate(models.Model):
|
|||
contract = models.BooleanField("Contrat valide", default=False)
|
||||
comment = models.TextField('Remarques', blank=True)
|
||||
|
||||
work_certificate = models.BooleanField("Bilan act. prof./dernier stage", default=False)
|
||||
marks_certificate = models.BooleanField("Bull. de notes", default=False)
|
||||
work_certificate = models.BooleanField("Préavis formatif", default=False)
|
||||
deposite_date = models.DateField('Date dépôt dossier')
|
||||
|
||||
examination_teacher = models.ForeignKey(
|
||||
|
|
@ -111,8 +110,7 @@ class Candidate(models.Model):
|
|||
file_result = models.PositiveSmallIntegerField('Points dossier', blank=True, null=True)
|
||||
|
||||
inscr_other_school = models.CharField("Inscr. autre école", max_length=30, blank=True)
|
||||
certif_of_800_childhood = models.BooleanField("Attest. 800h. enfance", default=False)
|
||||
certif_of_800_general = models.BooleanField("Attest. 800h. général", default=False)
|
||||
certif_of_400_general = models.BooleanField("Attest. 400h. général", default=False)
|
||||
diploma = models.PositiveSmallIntegerField('Titre sec. II', choices=DIPLOMA_CHOICES, default=0)
|
||||
diploma_detail = models.CharField('Détail titre', max_length=30, blank=True, default='')
|
||||
diploma_status = models.PositiveSmallIntegerField("Statut titre", choices=DIPLOMA_STATUS_CHOICES, default=0)
|
||||
|
|
|
|||
|
|
@ -91,30 +91,22 @@ class InscriptionSummaryPDF(EpcBaseDocTemplate):
|
|||
])
|
||||
|
||||
elif candidate.diploma == 2: # CFC autre domaine
|
||||
data.append([
|
||||
"Attestation de 800h. dans un seul lieu d'accueil de l'enfance",
|
||||
candidate.get_ok('certif_of_800_childhood')
|
||||
])
|
||||
data.append([
|
||||
"Bilan de l'activité professionnelle", candidate.get_ok('work_certificate')
|
||||
])
|
||||
|
||||
elif candidate.diploma == 3: # Matur, Ecole cult. générale
|
||||
data.extend([
|
||||
["Certif. de travail/stage de 800h. dans n'importe quel domaine",
|
||||
candidate.get_ok('certif_of_800_general')],
|
||||
["Attestation de 800h. dans un seul lieu d'accueil de l'enfance",
|
||||
candidate.get_ok('certif_of_800_childhood')],
|
||||
["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')],
|
||||
])
|
||||
|
||||
elif candidate.diploma == 4: # Portfolio
|
||||
data.extend([
|
||||
["Certif. de travail/stage de 800h. dans n'importe quel domaine",
|
||||
candidate.get_ok('certif_of_800_general')],
|
||||
["Attestation de 800h. dans un seul lieu d'accueil de l'enfance",
|
||||
candidate.get_ok('certif_of_800_childhood')],
|
||||
["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')],
|
||||
])
|
||||
|
|
@ -132,7 +124,7 @@ class InscriptionSummaryPDF(EpcBaseDocTemplate):
|
|||
data = []
|
||||
docs_required = [
|
||||
'registration_form', 'certificate_of_payement', 'police_record', 'cv', 'has_photo',
|
||||
'reflexive_text', 'marks_certificate', 'handicap',
|
||||
'reflexive_text', 'handicap',
|
||||
]
|
||||
for doc in docs_required:
|
||||
data.append([candidate._meta.get_field(doc).verbose_name, candidate.get_ok(doc)])
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@ class CandidateTests(TestCase):
|
|||
residence_permits = '',
|
||||
corporation = '',
|
||||
_save = 'Enregistrer',
|
||||
marks_certificate = 'on',
|
||||
avs = '75609994444567',
|
||||
activity_rate = '',
|
||||
last_name = 'G.',
|
||||
|
|
@ -76,7 +75,7 @@ class CandidateTests(TestCase):
|
|||
handicap = 'on',
|
||||
work_certificate = 'on',
|
||||
comment = 'Le casier judiciaire a été envoyé par e-mail le 30.01.2018',
|
||||
certif_of_800_general = 'on',
|
||||
certif_of_400_general = 'on',
|
||||
instructor = '',
|
||||
validation_sfpo = '',
|
||||
email = 'caterina.g@example.org',
|
||||
|
|
@ -88,7 +87,6 @@ class CandidateTests(TestCase):
|
|||
reflexive_text = 'on',
|
||||
diploma = '4',
|
||||
has_photo = 'on',
|
||||
certif_of_800_childhood = 'on',
|
||||
district = 'Ne',
|
||||
option = 'PS',
|
||||
interview_result = '',
|
||||
|
|
@ -257,7 +255,7 @@ En cas d’empêchement de dernière minute, nous vous remercions d’annoncer v
|
|||
Si vous rencontrez des difficultés d’apprentissage (dyslexie, dysorthographie, etc.), nous vous rappelons que vous pouvez bénéficier d’un temps supplémentaire d’une heure au maximum pour l’examen d’admission. Si vous n’avez pas déjà joint à votre dossier de candidature un document officiel (rapport d’orthophonie par exemple), vous devez impérativement nous le faire parvenir au moins 5 jours ouvrables avant la date du premier examen.
|
||||
|
||||
De plus, afin que nous puissions enregistrer définitivement votre inscription, nous vous remercions par avance de nous faire parvenir, dans les meilleurs délais, le ou les documents suivants:
|
||||
- Formulaire d’inscription, Attest. de paiement, Casier judic., CV, Texte réflexif, Photo passeport, Bull. de notes
|
||||
- Formulaire d’inscription, Attest. de paiement, Casier judic., CV, Texte réflexif, Photo passeport
|
||||
|
||||
Tous les documents nécessaires à compléter votre dossier se trouvent sur notre site internet à l’adresse https://www.cpne.ch/formations/educateur-trice-de-lenfance/.
|
||||
|
||||
|
|
@ -274,14 +272,14 @@ tél. 032 886 33 00
|
|||
# Add missing documents and resend message
|
||||
for field_name in [
|
||||
'registration_form', 'certificate_of_payement', 'police_record', 'cv', 'reflexive_text',
|
||||
'has_photo', 'marks_certificate']:
|
||||
'has_photo']:
|
||||
setattr(henri, field_name, True)
|
||||
henri.save()
|
||||
response = self.client.get(reverse('candidate-convocation', args=[henri.pk]))
|
||||
self.assertEqual(response.context['form'].initial['message'], expected_message.replace(
|
||||
"""
|
||||
De plus, afin que nous puissions enregistrer définitivement votre inscription, nous vous remercions par avance de nous faire parvenir, dans les meilleurs délais, le ou les documents suivants:
|
||||
- Formulaire d’inscription, Attest. de paiement, Casier judic., CV, Texte réflexif, Photo passeport, Bull. de notes
|
||||
- Formulaire d’inscription, Attest. de paiement, Casier judic., CV, Texte réflexif, Photo passeport
|
||||
|
||||
Tous les documents nécessaires à compléter votre dossier se trouvent sur notre site internet à l’adresse https://www.cpne.ch/formations/educateur-trice-de-lenfance/.
|
||||
|
||||
|
|
|
|||
|
|
@ -129,14 +129,14 @@ class ConvocationView(CandidateConfirmationView):
|
|||
# Define required documents depending on candidate diploma
|
||||
common_docs = [
|
||||
'registration_form', 'certificate_of_payement', 'police_record', 'cv', 'reflexive_text',
|
||||
'has_photo', 'marks_certificate',
|
||||
'has_photo',
|
||||
]
|
||||
dipl_docs = {
|
||||
0: [],
|
||||
1: ['work_certificate'], # CFC ASE
|
||||
2: ['certif_of_800_childhood', 'work_certificate'],
|
||||
3: ['certif_of_800_general', 'certif_of_800_childhood', 'work_certificate'],
|
||||
4: ['certif_of_800_general', 'certif_of_800_childhood', 'work_certificate'],
|
||||
2: ['work_certificate'],
|
||||
3: ['certif_of_400_general', 'work_certificate'],
|
||||
4: ['certif_of_400_general', 'work_certificate'],
|
||||
}[candidate.diploma]
|
||||
docs_required = dipl_docs + common_docs
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue