1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Clarified default behavior when fields and fieldsets are not set on ModelAdmin.

This commit is contained in:
aruseni 2024-10-27 21:31:36 +02:00 committed by Sarah Boyce
parent 17c8ee7e3f
commit a8f8b5a477

View File

@ -337,7 +337,8 @@ subclass::
If neither ``fields`` nor :attr:`~ModelAdmin.fieldsets` options are present,
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
are defined in the model.
are defined in the model, followed by any fields defined in
:attr:`~ModelAdmin.readonly_fields`.
.. attribute:: ModelAdmin.fieldsets