handle automatic waiting list email

online_registration
Raz 11 months ago
parent 7bb738aaed
commit 966f09c21f
  1. 4
      tournaments/services/email_service.py
  2. 2
      tournaments/urls.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}" 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 # 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: if other_player is not None:
body_parts.append( body_parts.append(

@ -3,8 +3,6 @@ from django.urls import include, path
from . import views from . import views
app_name = 'tournament'
urlpatterns = [ urlpatterns = [
path('reset/<uidb64>/<token>/', views.CustomPasswordResetConfirmView.as_view(), name='password_reset_confirm'), path('reset/<uidb64>/<token>/', views.CustomPasswordResetConfirmView.as_view(), name='password_reset_confirm'),
path("", views.index, name="index"), path("", views.index, name="index"),

Loading…
Cancel
Save