Permalink
Browse files

Added 'Notes on field ordering' to docs/newforms.txt

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4200 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
adrianholovaty committed Dec 13, 2006
1 parent d8a2198 commit 472a0d379e40bd8dd920210b1f95a2169c91ffca
Showing with 9 additions and 0 deletions.
  1. +9 −0 docs/newforms.txt
View
@@ -268,6 +268,15 @@ include ``%s`` -- then the library will act as if ``auto_id`` is ``True``.
By default, ``auto_id`` is set to the string ``'id_%s'``.
+Notes on field ordering
+~~~~~~~~~~~~~~~~~~~~~~~
+
+In the ``as_p()``, ``as_ul()`` and ``as_table()`` shortcuts, the fields are
+displayed in the order in which you define them in your form class. For
+example, in the ``ContactForm`` example, the fields are defined in the order
+``subject``, ``message``, ``sender``, ``cc_myself``. To reorder the HTML
+output, just change the order in which those fields are listed in the class.
+
More coming soon
================

0 comments on commit 472a0d3

Please sign in to comment.