summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/admin/index.txt21
1 files changed, 16 insertions, 5 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index 2a5652c24b..b7e94c7387 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -424,9 +424,16 @@ subclass::
"classes": ["wide", "collapse"],
}
- Fieldsets with the ``collapse`` style will be initially collapsed in
- the admin and replaced with a small "click to expand" link. Fieldsets
- with the ``wide`` style will be given extra horizontal space.
+ Fieldsets with the ``wide`` style will be given extra horizontal
+ space in the admin interface.
+ Fieldsets with a name and the ``collapse`` style will be initially
+ collapsed, using an expandable widget with a toggle for switching
+ their visibility.
+
+ .. versionchanged:: 5.1
+
+ ``fieldsets`` using the ``collapse`` class now use ``<details>``
+ and ``<summary>`` elements, provided they define a ``name``.
* ``description``
A string of optional extra text to be displayed at the top of each
@@ -2308,8 +2315,12 @@ The ``InlineModelAdmin`` class adds or customizes:
A list or tuple containing extra CSS classes to apply to the fieldset that
is rendered for the inlines. Defaults to ``None``. As with classes
configured in :attr:`~ModelAdmin.fieldsets`, inlines with a ``collapse``
- class will be initially collapsed and their header will have a small "show"
- link.
+ class will be initially collapsed using an expandable widget.
+
+ .. versionchanged:: 5.1
+
+ ``fieldsets`` using the ``collapse`` class now use ``<details>`` and
+ ``<summary>`` elements, provided they define a ``name``.
.. attribute:: InlineModelAdmin.extra