mirror of https://github.com/django/django.git
Clarified default behavior when fields and fieldsets are not set on ModelAdmin.
This commit is contained in:
parent
17c8ee7e3f
commit
a8f8b5a477
|
@ -337,7 +337,8 @@ subclass::
|
||||||
If neither ``fields`` nor :attr:`~ModelAdmin.fieldsets` options are present,
|
If neither ``fields`` nor :attr:`~ModelAdmin.fieldsets` options are present,
|
||||||
Django will default to displaying each field that isn't an ``AutoField`` and
|
Django will default to displaying each field that isn't an ``AutoField`` and
|
||||||
has ``editable=True``, in a single fieldset, in the same order as the fields
|
has ``editable=True``, in a single fieldset, in the same order as the fields
|
||||||
are defined in the model.
|
are defined in the model, followed by any fields defined in
|
||||||
|
:attr:`~ModelAdmin.readonly_fields`.
|
||||||
|
|
||||||
.. attribute:: ModelAdmin.fieldsets
|
.. attribute:: ModelAdmin.fieldsets
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue