diff --git a/jarvis/followup/views.py b/jarvis/followup/views.py index 0a1ace0..3661c9c 100644 --- a/jarvis/followup/views.py +++ b/jarvis/followup/views.py @@ -498,20 +498,24 @@ def note_create_or_update(request, note_id=None, gymnast_id=None): and ((not note_id) or (note_id and note.status == 0)) and new_note.status == 1 ): + + url = request.build_absolute_uri( + reverse("gymnast_details_tab", args=(new_note.gymnast.id, "event")) + ) + send_mail( "Nouvelle note", "Une nouvelle note vous a été envoyée", settings.EMAIL_HOST_USER, [new_note.gymnast.user.email, new_note.gymnast.email_trainer], fail_silently=False, - html_message="""

Bonjour,

-

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


Excellente journée

Jarvis

""", + html_message=f"""

Bonjour,

+

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

+

Excellente journée

+

Jarvis

""", ) return HttpResponseRedirect( reverse("gymnast_details_tab", args=(new_note.gymnast.id, "event"))