update email of note
This commit is contained in:
parent
ef55eaf65c
commit
6387ebdabe
|
@ -513,6 +513,7 @@ def note_create_or_update(request, note_id=None, gymnast_id=None):
|
||||||
url = request.build_absolute_uri(
|
url = request.build_absolute_uri(
|
||||||
reverse("gymnast_details_tab", args=(new_note.gymnast.id, "event"))
|
reverse("gymnast_details_tab", args=(new_note.gymnast.id, "event"))
|
||||||
)
|
)
|
||||||
|
content = (form.cleaned_data["informations"],)
|
||||||
|
|
||||||
send_mail(
|
send_mail(
|
||||||
"Nouvelle note",
|
"Nouvelle note",
|
||||||
|
@ -521,10 +522,12 @@ def note_create_or_update(request, note_id=None, gymnast_id=None):
|
||||||
[new_note.gymnast.user.email, new_note.gymnast.email_trainer],
|
[new_note.gymnast.user.email, new_note.gymnast.email_trainer],
|
||||||
fail_silently=False,
|
fail_silently=False,
|
||||||
html_message=f"""<p>Bonjour,</p>
|
html_message=f"""<p>Bonjour,</p>
|
||||||
<p>
|
<p>Une nouvelle note vous a été envoyée :</p>
|
||||||
Une nouvelle note vous a été envoyée.
|
<br />
|
||||||
Vous pouvez la consulter en cliquant <a href='{url}'>ici</a>.
|
{content}
|
||||||
</p>
|
<br />
|
||||||
|
<br />
|
||||||
|
<p>Vous pouvez la consulter en cliquant <a href='{url}'>ici</a>.</p>
|
||||||
<br /><p>Excellente journée</p>
|
<br /><p>Excellente journée</p>
|
||||||
<p>Jarvis</p>""",
|
<p>Jarvis</p>""",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue