From 1d4a0054e3f425259448bd23e62d2b8ca7d4b66b Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sat, 11 Aug 2007 11:06:14 +0000 Subject: [PATCH] Fixed #4762 -- Corrected an example. Thanks, Collin Grady and SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5851 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/newforms.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/newforms.txt b/docs/newforms.txt index acc28604df..4be0fe492b 100644 --- a/docs/newforms.txt +++ b/docs/newforms.txt @@ -678,7 +678,7 @@ The easiest way is to iterate over the form's fields, with
{% for field in form %} -
{{ field.label }}
+
{{ field.label_tag }}
{{ field }}
{% if field.help_text %}
{{ field.help_text }}
{% endif %} {% if field.errors %}
{{ field.errors }}
{% endif %} @@ -698,11 +698,11 @@ For example::
    -
  • {{ form.sender.label }} {{ form.sender }}
  • +
  • {{ form.sender.label_tag }} {{ form.sender }}
  • {{ form.sender.help_text }}
  • {% if form.sender.errors %}
      {{ form.sender.errors }}
    {% endif %} -
  • {{ form.subject.label }} {{ form.subject }}
  • +
  • {{ form.subject.label_tag }} {{ form.subject }}
  • {{ form.subject.help_text }}
  • {% if form.subject.errors %}
      {{ form.subject.errors }}
    {% endif %}