Browse files

Fixed #7983 -- Added fields to the ModelAdmin section in the admin do…

…cumentation. Thanks julien for the report and patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 525e1e3 commit e7508a456ea97ec513507149280ab36cde271738 @brosner brosner committed Aug 1, 2008
Showing with 20 additions and 0 deletions.
  1. +20 −0 docs/admin.txt
@@ -147,6 +147,26 @@ The ``field_options`` dictionary can have the following keys:
``django.utils.html.escape()`` to escape any HTML special
+Use this option as an alternative to ``fieldsets`` if the layout does not
+matter and if you want to only show a subset of the available fields in the
+form. For example, you could define a simpler version of the admin form for
+the ``django.contrib.flatpages.FlatPage`` model as follows::
+ class FlatPageAdmin(admin.ModelAdmin):
+ fields = ('url', 'title', 'content')
+In the above example, only the fields 'url', 'title' and 'content' will be
+displayed, sequencially, in the form.
+.. admonition:: Note
+ This ``fields`` option should not be confused with the ``fields``
+ dictionary key that is within the ``fieldsets`` option, as described in
+ the previous section.

0 comments on commit e7508a4

Please sign in to comment.