From 3e48ac0e786bda5c792e77069d8ab0db5ab9f634 Mon Sep 17 00:00:00 2001 From: Gregory Trullemans Date: Sat, 20 May 2023 18:12:54 +0200 Subject: [PATCH] =?UTF-8?q?Modification=20de=20l'email=20envoy=C3=A9=20pou?= =?UTF-8?q?r=20l'apprentissage=20d'une=20figure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jarvis/followup/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jarvis/followup/views.py b/jarvis/followup/views.py index ca41a69..6d1c2e7 100644 --- a/jarvis/followup/views.py +++ b/jarvis/followup/views.py @@ -654,6 +654,8 @@ def learnedskill_create_or_update(request, gymnast_id=None): # notification receiver = [] + skill = form.cleaned_data["skill"] + learning_step = form.cleaned_data["learning_step"] gymnast = Gymnast.objects.get(pk=form.cleaned_data["gymnast"].id) functionality = ContentType.objects.get(model="learnedskill") for notification in gymnast.notifications.filter( @@ -668,7 +670,7 @@ def learnedskill_create_or_update(request, gymnast_id=None): receiver, fail_silently=False, html_message=f"""

Bonjour,

-

Un nouveau skill () a été appris par {gymnast}.


+

{gymnast} a appris {skill} ({learning_step}).


Excellente journée

Jarvis

""", )