Skip to content

Commit

Permalink
job_applications: Fix notification structure
Browse files Browse the repository at this point in the history
The sender may be an employer
  • Loading branch information
tonial committed Jan 6, 2025
1 parent b57bd9d commit a162235
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions itou/job_applications/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ def notifications_accept_for_proxy(self):
def notifications_postpone_for_proxy(self):
return job_application_notifications.JobApplicationPostponedForProxyNotification(
self.sender,
self.sender_prescriber_organization,
self.sender_prescriber_organization or self.sender_company,
job_application=self,
)

Expand Down Expand Up @@ -1155,7 +1155,7 @@ def notifications_cancel_for_employer(self, canceled_by):
def notifications_cancel_for_proxy(self):
return job_application_notifications.JobApplicationCanceledNotification(
self.sender,
self.sender_prescriber_organization,
self.sender_prescriber_organization or self.sender_company,
job_application=self,
)

Expand Down

0 comments on commit a162235

Please sign in to comment.