Lint
This commit is contained in:
+2
-4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user