1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fixed #35464 -- Updated docs to note fieldsets have limited impact on TabularInlines.

This commit is contained in:
Maryam Yusuf 2024-06-24 00:38:02 +01:00 committed by Sarah Boyce
parent 86b548a59b
commit b5f4d76bc4

View File

@ -437,9 +437,7 @@ subclass::
* ``description`` * ``description``
A string of optional extra text to be displayed at the top of each A string of optional extra text to be displayed at the top of each
fieldset, under the heading of the fieldset. This string is not fieldset, under the heading of the fieldset.
rendered for :class:`~django.contrib.admin.TabularInline` due to its
layout.
Note that this value is *not* HTML-escaped when it's displayed in Note that this value is *not* HTML-escaped when it's displayed in
the admin interface. This lets you include HTML if you so desire. the admin interface. This lets you include HTML if you so desire.
@ -447,6 +445,17 @@ subclass::
:func:`django.utils.html.escape` to escape any HTML special :func:`django.utils.html.escape` to escape any HTML special
characters. characters.
.. admonition:: :class:`~django.contrib.admin.TabularInline` has limited
support for ``fieldsets``
Using ``fieldsets`` with :class:`~django.contrib.admin.TabularInline`
has limited functionality. You can specify which fields will be
displayed and their order within the ``TabularInline`` layout by
defining ``fields`` in the ``field_options`` dictionary.
All other features are not supported. This includes the use of ``name``
to define a title for a group of fields.
.. attribute:: ModelAdmin.filter_horizontal .. attribute:: ModelAdmin.filter_horizontal
By default, a :class:`~django.db.models.ManyToManyField` is displayed in By default, a :class:`~django.db.models.ManyToManyField` is displayed in