I'm trying to create a simple plain text email template that displays
user-submitted, clean form data. Right now, the template is:

email_template.txt
{% for field, value in data.items %}
{{ field }}: {{ value }}
{% endfor %}

The view passes the template {'data': form.cleaned_data}.
Unfortunately, making the template like this displays ugly field names
(ie, "other_comments"), not the label field names (ie, "Other
Comments"), which can be accessed from form["some_field"].label.

How can I modify the template to display the field's label with the
cleaned data?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to