Skip to content
Snippets Groups Projects
Commit 94d8f49e authored by elg's avatar elg
Browse files

Merge branch 'GREG-42-email' into 'master'

Fix formatting to comply with linting rules

See merge request !89
parents b1d1f4fa 88504eff
No related branches found
No related tags found
1 merge request!89Fix formatting to comply with linting rules
Pipeline #95881 passed
......@@ -7,16 +7,13 @@ def registration_template(institution, sponsor) -> str:
keywords = {
"institution": institution,
"sponsor": sponsor,
"registration_link": "www.google.com"
"registration_link": "www.google.com",
}
return render_to_string("guest_registration.txt", keywords)
def confirmation_template(guest) -> str:
keywords = {
"guest": guest,
"confirmation_link": "www.google.com"
}
keywords = {"guest": guest, "confirmation_link": "www.google.com"}
return render_to_string("sponsor_confirmation.txt", keywords)
......@@ -25,7 +22,7 @@ def send_registration_mail(mail_to, sponsor) -> int:
subject="Subject",
message=registration_template(settings.INSTANCE_NAME, sponsor),
from_email=None,
recipient_list=[mail_to]
recipient_list=[mail_to],
)
......@@ -34,5 +31,5 @@ def send_confirmation_mail(mail_to, guest) -> int:
subject="Subject",
message=confirmation_template(guest),
from_email=None,
recipient_list=[mail_to]
recipient_list=[mail_to],
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment