Modification de l'email envoyé pour l'apprentissage d'une figure

This commit is contained in:
Gregory Trullemans 2023-05-20 18:12:54 +02:00
parent e84ae786fa
commit 3e48ac0e78
1 changed files with 3 additions and 1 deletions

View File

@ -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"""<p>Bonjour,</p>
<p>Un nouveau skill () a été appris par {gymnast}.</p><br />
<p>{gymnast} a appris {skill} ({learning_step}).</p><br />
<p>Excellente journée</p><p>Jarvis</p>""",
)