Modification de l'email envoyé pour l'apprentissage d'une figure
This commit is contained in:
parent
e84ae786fa
commit
3e48ac0e78
|
@ -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>""",
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue