Skip to content

Commit

Permalink
Fixed #10507 -- Corrected formatting problem in ModelForm docs. Thank…
Browse files Browse the repository at this point in the history
…s to Paul Menzel for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10064 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Mar 15, 2009
1 parent b994387 commit 0597dea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/topics/forms/modelforms.txt
Expand Up @@ -340,10 +340,10 @@ parameter when declaring the form field::
Changing the order of fields
----------------------------

By default, a ``ModelForm`` will render fields in the same order that
they are defined on the model, with ``ManyToManyField``s appearing last.
If you want to change the order in which fields are rendered, you can
use the ``fields`` attribute on the ``Meta`` class.
By default, a ``ModelForm`` will render fields in the same order that they are
defined on the model, with ``ManyToManyField`` instances appearing last. If
you want to change the order in which fields are rendered, you can use the
``fields`` attribute on the ``Meta`` class.

The ``fields`` attribute defines the subset of model fields that will be
rendered, and the order in which they will be rendered. For example given this
Expand Down

0 comments on commit 0597dea

Please sign in to comment.