From 6387ebdabe8988b2767fb4640914812062e6eb9a Mon Sep 17 00:00:00 2001 From: Gregory Trullemans Date: Sun, 19 Nov 2023 19:43:57 +0100 Subject: [PATCH] update email of note --- jarvis/followup/views.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/jarvis/followup/views.py b/jarvis/followup/views.py index fdf15bc..502c083 100644 --- a/jarvis/followup/views.py +++ b/jarvis/followup/views.py @@ -513,6 +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"],) send_mail( "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], fail_silently=False, html_message=f"""

Bonjour,

-

- Une nouvelle note vous a été envoyée. - Vous pouvez la consulter en cliquant ici. -

+

Une nouvelle note vous a été envoyée :

+
+ {content} +
+
+

Vous pouvez la consulter en cliquant ici.


Excellente journée

Jarvis

""", )