Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added small note to docs/newforms.txt 'Complex template output' section

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5299 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 744d06528e593f57ad85399210a386f221a828d9 1 parent 1bf43df
@adrianholovaty adrianholovaty authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 docs/newforms.txt
View
5 docs/newforms.txt
@@ -675,6 +675,11 @@ The easiest way is to iterate over the form's fields, with
<input type="submit" />
</form>
+This iteration technique is useful if you want to apply the same HTML
+formatting to each field, or if you don't know the names of the form fields
+ahead of time. Note that the fields will be listed in the order in which
+they're defined in the ``Form`` class.
+
Alternatively, you can arrange the form's fields explicitly, by name. Do that
by accessing ``{{ form.fieldname }}``, where ``fieldname`` is the field's name.
For example::
Please sign in to comment.
Something went wrong with that request. Please try again.