Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utiliser JobSeekerProfileFieldMixin pour JobSeekerPersonalDataForm #5449

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

francoisfreitag
Copy link
Contributor

🤔 Pourquoi ?

Consolider l’implémentation de la modification du profil utilisateur.

🍰 Comment ?

Voir le message de commit.

Simplify the inheritance for JobSeekerNIRUpdateMixin, as all forms are
now based on the User model, and consolidate implementation of user
profile fields on JobSeekerProfileFieldMixin.

Because fields are now added to JobSeekerPersonalDataForm dynamically by
the JobSeekerProfileFieldMixin, `base_fields` are empty. Use the
birthdate field on the form instance to perform the validation. That’s
also a bit safer, as we don’t risk making changes to the reused
base_fields for other requests.
@francoisfreitag francoisfreitag added the no-changelog Ne doit pas figurer dans le journal des changements. label Jan 23, 2025
@francoisfreitag francoisfreitag self-assigned this Jan 23, 2025
@francoisfreitag francoisfreitag added this pull request to the merge queue Jan 23, 2025
Merged via the queue into master with commit 5647265 Jan 23, 2025
10 checks passed
@francoisfreitag francoisfreitag deleted the ff/job-seeker-personal-data branch January 23, 2025 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Ne doit pas figurer dans le journal des changements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants