diff --git a/jarvis/followup/views.py b/jarvis/followup/views.py index 6d1c2e7..226fdc1 100644 --- a/jarvis/followup/views.py +++ b/jarvis/followup/views.py @@ -568,6 +568,9 @@ def chrono_create_or_update(request, chrono_id=None, gymnast_id=None): # notification receiver = [] + score = form.cleaned_data["score"] + score_type = form.cleaned_data["score_type"] + chrono_type = form.cleaned_data["chrono_type"] gymnast = Gymnast.objects.get(pk=form.cleaned_data["gymnast"].id) functionality = ContentType.objects.get(model="chrono") for notification in gymnast.notifications.filter( @@ -582,7 +585,7 @@ def chrono_create_or_update(request, chrono_id=None, gymnast_id=None): receiver, fail_silently=False, html_message=f"""

Bonjour,

-

Un nouveau chrono enregistré pour {gymnast}.


+

Nouveau chrono pour {gymnast} : {chrono_type} - {score} ({score_type}).


Excellente journée

Jarvis

""", )