|
|
|
@ -190,7 +190,11 @@ def warn_team_walkout_status_change(sender, instance, **kwargs): |
|
|
|
notify_team(instance, instance.tournament, TeamEmailType.OUT_OF_WALKOUT_IS_IN) |
|
|
|
notify_team(instance, instance.tournament, TeamEmailType.OUT_OF_WALKOUT_IS_IN) |
|
|
|
elif not previous_instance.out_of_tournament() and instance.out_of_tournament(): |
|
|
|
elif not previous_instance.out_of_tournament() and instance.out_of_tournament(): |
|
|
|
instance.cancel_time_to_confirm() |
|
|
|
instance.cancel_time_to_confirm() |
|
|
|
notify_team(instance, instance.tournament, TeamEmailType.WALKOUT) |
|
|
|
print("User did cancel registration", instance.user_did_cancel_registration()) |
|
|
|
|
|
|
|
if instance.user_did_cancel_registration(): |
|
|
|
|
|
|
|
notify_team(instance, instance.tournament, TeamEmailType.UNREGISTERED) |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
notify_team(instance, instance.tournament, TeamEmailType.WALKOUT) |
|
|
|
|
|
|
|
|
|
|
|
if was_out and not is_out: |
|
|
|
if was_out and not is_out: |
|
|
|
first_out_of_list = instance.tournament.first_waiting_list_team(current_teams) |
|
|
|
first_out_of_list = instance.tournament.first_waiting_list_team(current_teams) |
|
|
|
|