From 966f09c21f11a2cec89317e3ff297279a5d08f9d Mon Sep 17 00:00:00 2001 From: Raz Date: Mon, 23 Dec 2024 10:34:02 +0100 Subject: [PATCH] handle automatic waiting list email --- tournaments/services/email_service.py | 4 +--- tournaments/urls.py | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tournaments/services/email_service.py b/tournaments/services/email_service.py index 5902745..7f031e3 100644 --- a/tournaments/services/email_service.py +++ b/tournaments/services/email_service.py @@ -169,10 +169,8 @@ class TournamentEmailService: 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('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 + absolute_url = f"https://xlr.alwaysdata.net/tournament/{tournament.id}/info" # Replace with your domain if other_player is not None: body_parts.append( diff --git a/tournaments/urls.py b/tournaments/urls.py index 91359f6..980e460 100644 --- a/tournaments/urls.py +++ b/tournaments/urls.py @@ -3,8 +3,6 @@ from django.urls import include, path from . import views -app_name = 'tournament' - urlpatterns = [ path('reset///', views.CustomPasswordResetConfirmView.as_view(), name='password_reset_confirm'), path("", views.index, name="index"),