From: Radek Czajka Date: Wed, 24 Oct 2012 12:41:11 +0000 (+0200) Subject: nicer mail X-Git-Url: https://git.mdrn.pl/prawokultury.git/commitdiff_plain/a84463e418ebe210f8c0ae2f466ad268d31e4c36 nicer mail --- 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 %}