From f474afdea8f833c6fb94cfd1c9c10829b4577cb5 Mon Sep 17 00:00:00 2001 From: Raz Date: Mon, 23 Dec 2024 09:41:17 +0100 Subject: [PATCH] handle automatic waiting list email --- tournaments/services/email_service.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tournaments/services/email_service.py b/tournaments/services/email_service.py index 067b45c..5378ef7 100644 --- a/tournaments/services/email_service.py +++ b/tournaments/services/email_service.py @@ -168,12 +168,10 @@ class TournamentEmailService: "Bonjour,\n", f"Suite au désistement d'une paire, vous êtes maintenant inscrit au tournoi {tournament_details_str} {name_str}, prévu le {tournament.start_date.strftime('%d/%m/%Y')} au club {tournament.event.club.name}" ] - - unregister_url = reverse('unregister-tournament', args=[tournament.id]) + unregister_url = reverse('tournament:unregister-tournament', args=[tournament.id]) # Make it an absolute URL by adding the domain absolute_url = f"https://xlr.alwaysdata.net{unregister_url}" # Replace with your domain - if other_player is not None: body_parts.append( f"\nVoici le partenaire indiqué dans l'inscription : {other_player.name()}, n'oubliez pas de le prévenir."