From a8f8b5a477bbf6a4fdf3006987117b90634ffba7 Mon Sep 17 00:00:00 2001 From: aruseni Date: Sun, 27 Oct 2024 21:31:36 +0200 Subject: [PATCH] Clarified default behavior when fields and fieldsets are not set on ModelAdmin. --- docs/ref/contrib/admin/index.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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