handle automatic waiting list email

online_registration
Raz 11 months ago
parent 9bc13197c4
commit bdd72c7ada
  1. 2
      tournaments/models/tournament.py
  2. 2
      tournaments/services/email_service.py

@ -1164,7 +1164,7 @@ class Tournament(models.Model):
teams = self.teams(True)
waiting_teams = [team for team in teams if team.stage == "Attente"]
if waiting_teams:
return waiting_teams[0]
return waiting_teams[0].team_registration
return None
class MatchGroup:

@ -171,7 +171,7 @@ class TournamentEmailService:
unregister_url = reverse('unregister-tournament', args=[tournament.id])
# Make it an absolute URL by adding the domain
absolute_url = f"https://127.0.0.1:8000{unregister_url}" # Replace with your domain
absolute_url = f"https://xlr.alwaysdata.net{unregister_url}" # Replace with your domain
if other_player is not None:

Loading…
Cancel
Save