| 150 | ``fields`` |
| 151 | ~~~~~~~~~~ |
| 152 | |
| 153 | Use this option as an alternative to ``fieldsets`` if the layout does not matter and if |
| 154 | you want to only show a subset of the available fields in the form. For example, you could |
| 155 | define a simpler version of the admin form for the ``django.contrib.flatpages.FlatPage`` model |
| 156 | as follows:: |
| 157 | |
| 158 | class FlatPageAdmin(admin.ModelAdmin): |
| 159 | fields = ('url', 'title', 'content') |
| 160 | |
| 161 | In the above example, only the fields 'url', 'title' and 'content' will be displayed, sequencially, |
| 162 | in the form. |
| 163 | |
| 164 | Remark: this ``fields`` option should not be confused with the ``fields`` dictionary key that is used |
| 165 | within the ``fieldsets`` option, as described in the previous section. |
| 166 | |