From 72970a06ef72dd0eddfae45f35b95ee73939048c Mon Sep 17 00:00:00 2001 From: Raz Date: Wed, 16 Apr 2025 18:20:52 +0200 Subject: [PATCH] fix signal crash --- tournaments/signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournaments/signals.py b/tournaments/signals.py index 5d1318f..90e5731 100644 --- a/tournaments/signals.py +++ b/tournaments/signals.py @@ -166,7 +166,7 @@ def warn_team_walkout_status_change(sender, instance, **kwargs): is_out = True print(was_out, previous_instance.out_of_tournament(), is_out, instance.out_of_tournament()) - if instance.has_changed(previous_instance) and not instance.out_of_tournament() and is_out and (previous_instance.out_of_tournament() or not was_out): + if not instance.out_of_tournament() and is_out and (previous_instance.out_of_tournament() or not was_out): notify_team(instance, instance.tournament, TeamEmailType.OUT_OF_WALKOUT_WAITING_LIST) elif was_out and not is_out: waiting_list_teams = instance.tournament.waiting_list_teams(current_teams)