diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2023-06-22 11:55:38 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-06-23 09:29:35 +0200 |
| commit | f8092ee9adafaa052172712349a32bd5889b5ccb (patch) | |
| tree | 29d9cf1b39c7e35a58328b1996824f01aa3fba4d /docs/ref/contrib/admin | |
| parent | 107865780aa44914e21d27fdf4ca269bc61c7f01 (diff) | |
Improved style of n-tuple wording in docs and comments.
Diffstat (limited to 'docs/ref/contrib/admin')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index f8a8153a49..2ae7e3958f 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -342,11 +342,11 @@ subclass:: Set ``fieldsets`` to control the layout of admin "add" and "change" pages. - ``fieldsets`` is a list of two-tuples, in which each two-tuple represents a + ``fieldsets`` is a list of 2-tuples, in which each 2-tuple represents a ``<fieldset>`` on the admin form page. (A ``<fieldset>`` is a "section" of the form.) - The two-tuples are in the format ``(name, field_options)``, where ``name`` + The 2-tuples are in the format ``(name, field_options)``, where ``name`` is a string representing the title of the fieldset and ``field_options`` is a dictionary of information about the fieldset, including a list of fields to be displayed in it. @@ -1556,7 +1556,7 @@ templates used by the :class:`ModelAdmin` views: The ``get_fieldsets`` method is given the ``HttpRequest`` and the ``obj`` being edited (or ``None`` on an add form) and is expected to return a list - of two-tuples, in which each two-tuple represents a ``<fieldset>`` on the + of 2-tuples, in which each 2-tuple represents a ``<fieldset>`` on the admin form page, as described above in the :attr:`ModelAdmin.fieldsets` section. .. method:: ModelAdmin.get_list_filter(request) |
