diff --git a/api/serializers.py b/api/serializers.py index 9588991..b6459cf 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -89,6 +89,7 @@ class UserSerializer(serializers.ModelSerializer): 'token': account_activation_token.make_token(user), }) email = EmailMessage(mail_subject, message, to=[user.email]) + email.content_subtype = "html" email.send() class Meta: diff --git a/tournaments/models/match.py b/tournaments/models/match.py index 92b6046..acdf519 100644 --- a/tournaments/models/match.py +++ b/tournaments/models/match.py @@ -158,11 +158,11 @@ class Match(models.Model): # No team scores at all if previous_top_match: - names = [f"Gagnants du {previous_top_match.computed_name()}", ''] + names = [f"Gagnants {previous_top_match.computed_name()}", ''] team = self.default_live_team(names) teams.append(team) if previous_bottom_match: - names = [f"Gagnants du {previous_bottom_match.computed_name()}", ''] + names = [f"Gagnants {previous_bottom_match.computed_name()}", ''] team = self.default_live_team(names) teams.append(team) elif len(team_scores) == 1: @@ -174,12 +174,12 @@ class Match(models.Model): teams.append(existing_team) else: if previous_top_match and previous_top_match.disabled == False and previous_top_match.end_date is None: - names = [f"Gagnants du {previous_top_match.computed_name()}", ''] + names = [f"Gagnants {previous_top_match.computed_name()}", ''] team = self.default_live_team(names) teams.append(team) teams.append(existing_team) elif previous_bottom_match: - names = [f"Gagnants du {previous_bottom_match.computed_name()}", ''] + names = [f"Gagnants {previous_bottom_match.computed_name()}", ''] team = self.default_live_team(names) teams.append(existing_team) teams.append(team) diff --git a/tournaments/templates/tournaments/acc_active_email.html b/tournaments/templates/tournaments/acc_active_email.html index bd85592..9bb6300 100644 --- a/tournaments/templates/tournaments/acc_active_email.html +++ b/tournaments/templates/tournaments/acc_active_email.html @@ -1,13 +1,16 @@ + +
{% autoescape off %} Bienvenue {{ user.username }} ! -Veuillez cliquer sur le lien suivant pour activer votre compte: -padelclub://{{ domain }}{% url 'activate' uidb64=uid token=token %}?next={{ next }} +