summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authoraruseni <aruseni.magiku@gmail.com>2024-10-27 21:31:36 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-10-30 12:53:10 +0100
commita8f8b5a477bbf6a4fdf3006987117b90634ffba7 (patch)
treeb52a1f92b8af32ad67ea4a12bf0a5dda284a95b9 /docs
parent17c8ee7e3f7bf400128281b4fb283d7c209ca02b (diff)
Clarified default behavior when fields and fieldsets are not set on ModelAdmin.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/admin/index.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index 716e3180db..d9e12f0165 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -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