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 | |
| parent | 107865780aa44914e21d27fdf4ca269bc61c7f01 (diff) | |
Improved style of n-tuple wording in docs and comments.
Diffstat (limited to 'docs/ref/contrib')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 6 | ||||
| -rw-r--r-- | docs/ref/contrib/gis/geoquerysets.txt | 4 |
2 files changed, 5 insertions, 5 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) diff --git a/docs/ref/contrib/gis/geoquerysets.txt b/docs/ref/contrib/gis/geoquerysets.txt index 1c98b6f896..2c95e32b4d 100644 --- a/docs/ref/contrib/gis/geoquerysets.txt +++ b/docs/ref/contrib/gis/geoquerysets.txt @@ -893,7 +893,7 @@ caring about dissolving boundaries. *Availability*: `PostGIS <https://postgis.net/docs/ST_Extent.html>`__, Oracle, SpatiaLite -Returns the extent of all ``geo_field`` in the ``QuerySet`` as a four-tuple, +Returns the extent of all ``geo_field`` in the ``QuerySet`` as a 4-tuple, comprising the lower left coordinate and the upper right coordinate. Example: @@ -915,7 +915,7 @@ Example: *Availability*: `PostGIS <https://postgis.net/docs/ST_3DExtent.html>`__ -Returns the 3D extent of all ``geo_field`` in the ``QuerySet`` as a six-tuple, +Returns the 3D extent of all ``geo_field`` in the ``QuerySet`` as a 6-tuple, comprising the lower left coordinate and upper right coordinate (each with x, y, and z coordinates). |
