update email of note

This commit is contained in:
Gregory Trullemans 2023-11-19 19:47:02 +01:00
parent 6387ebdabe
commit 79b5985d21
1 changed files with 2 additions and 6 deletions

View File

@ -513,7 +513,7 @@ def note_create_or_update(request, note_id=None, gymnast_id=None):
url = request.build_absolute_uri(
reverse("gymnast_details_tab", args=(new_note.gymnast.id, "event"))
)
content = (form.cleaned_data["informations"],)
# content = (form.cleaned_data["informations"])
send_mail(
"Nouvelle note",
@ -522,11 +522,7 @@ def note_create_or_update(request, note_id=None, gymnast_id=None):
[new_note.gymnast.user.email, new_note.gymnast.email_trainer],
fail_silently=False,
html_message=f"""<p>Bonjour,</p>
<p>Une nouvelle note vous a été envoyée :</p>
<br />
{content}
<br />
<br />
<p>Une nouvelle note vous a été envoyée.</p>
<p>Vous pouvez la consulter en cliquant <a href='{url}'>ici</a>.</p>
<br /><p>Excellente journée</p>
<p>Jarvis</p>""",