From a84463e418ebe210f8c0ae2f466ad268d31e4c36 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 24 Oct 2012 14:41:11 +0200 Subject: [PATCH] nicer mail --- contact/templates/contact/mail_managers_body.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/contact/templates/contact/mail_managers_body.txt b/contact/templates/contact/mail_managers_body.txt index c54478a..386c9cd 100644 --- a/contact/templates/contact/mail_managers_body.txt +++ b/contact/templates/contact/mail_managers_body.txt @@ -2,4 +2,11 @@ http://{{ site_domain }}{% url 'admin:contact_contact_change' contact.pk %} -{{ contact.body }} +{% for k, v in contact.body.items %} +{{ k }}: +{{ v }} +{% endfor %} +{% for attachment in contact.attachment_set.all %} +{{ attachment.tag }}: +http://{{ site_domain }}{{ attachment.get_absolute_url }} +{% endfor %} -- 2.20.1