From b23fcaa4a2ba760d9e8c7b6c5b754200b6fd581d Mon Sep 17 00:00:00 2001 From: kououken Date: Thu, 21 Feb 2019 19:41:26 -0800 Subject: [PATCH] Fixed bug in subject line formatting. --- back/backend/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/back/backend/views.py b/back/backend/views.py index eb18992..e855f78 100644 --- a/back/backend/views.py +++ b/back/backend/views.py @@ -383,14 +383,13 @@ def send_report_to_admin(request, report_pk): report_pk -- ID of the report to submit """ params = get_report(report_pk) - subject = 'Report: {}'.format(params['title']), to_email = config('SUBMIT_REPORT_DESTINATION_EMAIL') from_email = config('SUBMIT_REPORT_FROM_EMAIL') cc = request.user.email msg_html = render_to_string('backend/email.html', params) msg_plain = render_to_string('backend/email.txt', params) message = EmailMultiAlternatives( - subject, + "Reimbursinator - {}".format(params['title']), msg_plain, from_email, [to_email],