-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use JobSeekerProfileFieldMixin in JobSeekerPersonalDataForm
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.
- Loading branch information
1 parent
93f028b
commit 5647265
Showing
3 changed files
with
13 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters