handle automatic waiting list email

online_registration
Raz 11 months ago
parent 966f09c21f
commit 97d9133f40
  1. 28
      tournaments/signals.py

@ -93,22 +93,16 @@ def unregister_team(sender, instance, **kwargs):
else:
waiting_other_player = player
if waiting_captain and waiting_captain.source is not PlayerDataSource.ONLINE_REGISTRATION and not waiting_captain.email:
return
TournamentEmailService.send_out_of_waiting_list_confirmation(
waiting_captain,
if waiting_captain and waiting_captain.source is PlayerDataSource.ONLINE_REGISTRATION and waiting_captain.email:
TournamentEmailService.send_out_of_waiting_list_confirmation(
waiting_captain,
tournament,
waiting_other_player
)
if captain and captain.source is PlayerDataSource.ONLINE_REGISTRATION and captain.email:
TournamentEmailService.send_unregistration_confirmation(
captain,
tournament,
waiting_other_player
other_player
)
if captain and captain.source is not PlayerDataSource.ONLINE_REGISTRATION and not captain.email:
return
TournamentEmailService.send_unregistration_confirmation(
captain,
tournament,
other_player
)

Loading…
Cancel
Save