This commit is contained in:
Ojakoo
2022-09-23 20:53:25 +03:00
parent 037e4ae6e8
commit 70676d5203
+2 -4
View File
@@ -70,8 +70,7 @@ def comment(request, *args, **kwargs):
to_email = comment.parent.email
subject = "Kaehmyysi tai kommenttiisi on vastattu!"
message = render_to_string(
"kaehmy/email_comment.html",
{ "name": name, "url": url }
"kaehmy/email_comment.html", {"name": name, "url": url}
)
send_email(to=to_email, subject=subject, body=message, html=True)
@@ -136,8 +135,7 @@ def submit(request, *args, **kwargs):
to_email = form.cleaned_data.get("email", "")
subject = "Arwokas kirjattu kirje mahdolliselle tulewalle kiltahenkilölle"
message = render_to_string(
"kaehmy/email_kaehmy.html",
{ "name": name, "url": url }
"kaehmy/email_kaehmy.html", {"name": name, "url": url}
)
send_email(to=to_email, subject=subject, body=message, html=True)