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