Old changes
[prawokultury.git] / contact / templates / contact / mail_managers_body.txt
index 1090fb7..386c9cd 100644 (file)
@@ -1,5 +1,12 @@
-Wypełniono formularz {{ form_tag }} na stronie {{ site.name }}.
+{% load url from future %}Wypełniono formularz {{ form_tag }} na stronie {{ site_name }}.
 
-http://{{ site.domain }}{{ admin_url }}
+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 %}