Skip to content
Snippets Groups Projects
Commit 7d106328 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add full URLs to mail.

parent 90671543
No related branches found
No related tags found
No related merge requests found
......@@ -158,9 +158,10 @@ def feedback_event(request, cn):
'X-OTRS-CustomerUser': current_person.uid
}
message.body = form_to_text_table(feedback_form, 78)
message.body += '\n'
for url in photo_urls:
message.body += url + '\n'
if photo_urls:
message.body += '\n\n' + _('Fotos:') + '\n\n'
for url in photo_urls:
message.body += request.build_absolute_uri(url) + '\n'
# Attach raw form data as attachment
message.attach('feedback_form.json', json.dumps(feedback_form.cleaned_data, indent=4, default=str), 'application/json')
......
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