Signup email and other model fields

This commit is contained in:
Aarni Halinen
2020-10-04 18:21:54 +03:00
parent 1304cffa2a
commit dc6347a6eb
5 changed files with 47 additions and 4 deletions
+2 -1
View File
@@ -91,10 +91,11 @@ def send_email(to, subject, body, html=False):
logging.exception('Failed to send email.')
def send_signup_email(to, subject, id, uuid):
def send_signup_email(to, subject, id, uuid, content):
message = render_to_string(
'webapp:signup_email.html', {
'url': f"https://{FRONTEND_URL}/signup/edit/{id}/{uuid}",
'content': content,
}
)