diff options
| author | Maryam Yusuf <maryam.m.yusuf1802@gmail.com> | 2024-06-24 00:38:02 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-07-15 12:43:42 +0200 |
| commit | b5f4d76bc400b9f2017da0a52ee4ff0d7c09be15 (patch) | |
| tree | 79dff6a21385346bd13d36109544e9e5623c1898 /docs | |
| parent | 86b548a59bce88a274daa17f22b59ce63282d7ba (diff) | |
Fixed #35464 -- Updated docs to note fieldsets have limited impact on TabularInlines.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 504ab62368..6af2140717 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -437,9 +437,7 @@ subclass:: * ``description`` 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 - rendered for :class:`~django.contrib.admin.TabularInline` due to its - layout. + fieldset, under the heading of the fieldset. 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. @@ -447,6 +445,17 @@ subclass:: :func:`django.utils.html.escape` to escape any HTML special 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 By default, a :class:`~django.db.models.ManyToManyField` is displayed in |
