From 7bb738aaed87ee3d394fb5bb7574f87018700444 Mon Sep 17 00:00:00 2001 From: Raz Date: Mon, 23 Dec 2024 09:52:37 +0100 Subject: [PATCH] handle automatic waiting list email --- tournaments/services/email_service.py | 2 ++ tournaments/urls.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tournaments/services/email_service.py b/tournaments/services/email_service.py index 5378ef7..5902745 100644 --- a/tournaments/services/email_service.py +++ b/tournaments/services/email_service.py @@ -168,6 +168,8 @@ 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('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 diff --git a/tournaments/urls.py b/tournaments/urls.py index 980e460..91359f6 100644 --- a/tournaments/urls.py +++ b/tournaments/urls.py @@ -3,6 +3,8 @@ 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"),