Skip to content

Commit

Permalink
Revert "Allow empty birth_{country,place} for deployment"
Browse files Browse the repository at this point in the history
This reverts commit a325337.
  • Loading branch information
francoisfreitag committed Jan 9, 2025
1 parent 1b08111 commit faaccfb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions itou/www/signup/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,8 @@ def save(self, request):
user.save()
user.jobseeker_profile.nir = self.prior_cleaned_data["nir"]
user.jobseeker_profile.birthdate = self.prior_cleaned_data["birthdate"]
try:
user.jobseeker_profile.birth_place_id = self.prior_cleaned_data["birth_place"]
user.jobseeker_profile.birth_country_id = self.prior_cleaned_data["birth_country"]
except KeyError:
# TODO: Remove try-except next week.
# Users signing up during deployment won’t have these in their session.
pass
user.jobseeker_profile.birth_place_id = self.prior_cleaned_data["birth_place"]
user.jobseeker_profile.birth_country_id = self.prior_cleaned_data["birth_country"]
user.jobseeker_profile.save()

return user
Expand Down

0 comments on commit faaccfb

Please sign in to comment.