Skip to content

Inscription : Ajouter les champs lieu et pays de naissance pour les candidats [GEN-1946]#5351

Merged
francoisfreitag merged 2 commits into
masterfrom
ff/job-seeker-info-fields
Jan 9, 2025
Merged

Inscription : Ajouter les champs lieu et pays de naissance pour les candidats [GEN-1946]#5351
francoisfreitag merged 2 commits into
masterfrom
ff/job-seeker-info-fields

Conversation

@francoisfreitag

@francoisfreitag francoisfreitag commented Jan 7, 2025

Copy link
Copy Markdown
Member

🤔 Pourquoi ?

Afin de certifier l’éligibilité d’un candidat à certains critères administratifs et lui octroyer automatiquement les droits à un parcours IAE, l’API particulier requiert la commune et le pays de naissance. Ces informations sont maintenant requises pour l’inscription sur les Emplois de l’inclusion.

🍰 Comment ?

La classe de base BirthPlaceAndCountryMixin hérite désormais de Form, non plus de ModelForm. Ceci permet au formulaire d’inscription (qui n’est pas un ModelForm) de réutiliser le mixin. Le point d’extension _post_clean() n’est pas disponible sur les Form, sa logique a été intégrée dans la méthode clean().

🏝️ Comment tester

  1. S’inscrire en tant que candidat

💻 Captures d'écran

image

image

@francoisfreitag francoisfreitag added the modifié Modifié dans le changelog. label Jan 7, 2025
@francoisfreitag francoisfreitag self-assigned this Jan 7, 2025
@francoisfreitag francoisfreitag added the 1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC label Jan 7, 2025
@francoisfreitag

Copy link
Copy Markdown
Member Author

Vous êtes nombreux à être intéressés par le sujet, alors je vous invite tous à la relecture 🤗

@francoisfreitag francoisfreitag changed the title Candidats : Ajouter les champs lieu et pays de naissance à l’inscription Candidats : Ajouter les champs lieu et pays de naissance à l’inscription [GEN-1946] Jan 7, 2025
@github-actions

github-actions Bot commented Jan 7, 2025

Copy link
Copy Markdown

🥁 La recette jetable est prête ! 👉 Je veux tester cette PR !

@francoisfreitag francoisfreitag changed the title Candidats : Ajouter les champs lieu et pays de naissance à l’inscription [GEN-1946] Inscription : Ajouter les champs lieu et pays de naissance pour les candidats [GEN-1946] Jan 7, 2025

@xavfernandez xavfernandez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread itou/www/signup/forms.py Outdated
Comment thread itou/asp/forms.py Outdated

@calummackervoy calummackervoy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avec ce PR je peux améliorer la redirection lors de l'enregistrement des utilisateurs en double (champs de naissance correspondants)

@francoisfreitag
francoisfreitag force-pushed the ff/job-seeker-info-fields branch 3 times, most recently from 12bc2ba to 4be772f Compare January 9, 2025 10:39
Make sure users are able to complete their profile in order to have
their IAE eligibility certified.

The BirthPlaceAndCountryMixin base class changed from ModelForm to Form
to allow the job seeker sign up process to reuse it. The `_post_clean()`
hook isn’t available on regular Forms, the validation didn’t need that
hook and was merged with `clean()`.
Users in the process of completing the tunnel won’t have the keys in
their session.
@francoisfreitag
francoisfreitag force-pushed the ff/job-seeker-info-fields branch from 28597be to 55431cb Compare January 9, 2025 10:41
@francoisfreitag
francoisfreitag added this pull request to the merge queue Jan 9, 2025
Merged via the queue into master with commit a325337 Jan 9, 2025
@francoisfreitag
francoisfreitag deleted the ff/job-seeker-info-fields branch January 9, 2025 13:54
@notion-workspace

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants