summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClifford Gama <cliffygamy@gmail.com>2026-01-19 15:39:25 +0200
committerGitHub <noreply@github.com>2026-01-19 08:39:25 -0500
commit25416413470d8e6630528626ee8b033d2d77ff46 (patch)
tree69331b93412e68d0c0c63df30541ff349053d34f /docs
parent899eee3883bfdfeb4ea3ac7f6b3b4588b728e6dc (diff)
Fixed unbalanced parentheses in docs.
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/contributing/writing-documentation.txt4
-rw-r--r--docs/ref/contrib/postgres/lookups.txt2
-rw-r--r--docs/ref/migration-operations.txt2
-rw-r--r--docs/ref/models/instances.txt2
-rw-r--r--docs/ref/models/lookups.txt2
-rw-r--r--docs/ref/models/querysets.txt2
-rw-r--r--docs/ref/request-response.txt2
-rw-r--r--docs/ref/settings.txt2
-rw-r--r--docs/releases/1.0-porting-guide.txt2
-rw-r--r--docs/releases/1.10.txt2
-rw-r--r--docs/releases/1.8.1.txt2
-rw-r--r--docs/releases/1.8.txt2
-rw-r--r--docs/topics/cache.txt2
-rw-r--r--docs/topics/http/sessions.txt2
14 files changed, 15 insertions, 15 deletions
diff --git a/docs/internals/contributing/writing-documentation.txt b/docs/internals/contributing/writing-documentation.txt
index b519fdbd86..09a790b4a3 100644
--- a/docs/internals/contributing/writing-documentation.txt
+++ b/docs/internals/contributing/writing-documentation.txt
@@ -520,7 +520,7 @@ define some extra description units:
Django's documentation uses a custom ``console`` directive for documenting
command-line examples involving ``django-admin``, ``manage.py``, ``python``,
-etc.). In the HTML documentation, it renders a two-tab UI, with one tab showing
+etc. In the HTML documentation, it renders a two-tab UI, with one tab showing
a Unix-style command prompt and a second tab showing a Windows prompt.
For example, you can replace this fragment:
@@ -584,7 +584,7 @@ blank line and an optional description (indented).
General improvements or other changes to the APIs that should be emphasized
should use the "``.. versionchanged:: X.Y``" directive (with the same format
-as the ``versionadded`` mentioned above.
+as the ``versionadded`` mentioned above).
These ``versionadded`` and ``versionchanged`` blocks should be
"self-contained." In other words, since we only keep these annotations around
diff --git a/docs/ref/contrib/postgres/lookups.txt b/docs/ref/contrib/postgres/lookups.txt
index 6dc6618f9a..63cb0a116b 100644
--- a/docs/ref/contrib/postgres/lookups.txt
+++ b/docs/ref/contrib/postgres/lookups.txt
@@ -89,7 +89,7 @@ can be chained with other lookup functions. To use it, you need to add
the `unaccent extension on PostgreSQL`_. The
:class:`~django.contrib.postgres.operations.UnaccentExtension` migration
operation is available if you want to perform this activation using
-migrations).
+migrations.
.. _unaccent extension on PostgreSQL: https://www.postgresql.org/docs/current/unaccent.html
diff --git a/docs/ref/migration-operations.txt b/docs/ref/migration-operations.txt
index f8b13456a0..a59dd1ee2b 100644
--- a/docs/ref/migration-operations.txt
+++ b/docs/ref/migration-operations.txt
@@ -158,7 +158,7 @@ Alters the managers that are available during migrations.
Adds a field to a model. ``model_name`` is the model's name, ``name`` is
the field's name, and ``field`` is an unbound Field instance (the thing
you would put in the field declaration in ``models.py`` - for example,
-``models.IntegerField(null=True)``.
+``models.IntegerField(null=True)``).
The ``preserve_default`` argument indicates whether the field's default
value is permanent and should be baked into the project state (``True``),
diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt
index 323de16b1f..716cb48b4c 100644
--- a/docs/ref/models/instances.txt
+++ b/docs/ref/models/instances.txt
@@ -814,7 +814,7 @@ The ``__hash__()`` method is based on the instance's primary key value. It
is effectively ``hash(obj.pk)``. If the instance doesn't have a primary key
value then a ``TypeError`` will be raised (otherwise the ``__hash__()``
method would return different values before and after the instance is
-saved, but changing the :meth:`~object.__hash__` value of an instance is
+saved), but changing the :meth:`~object.__hash__` value of an instance is
forbidden in Python.
``get_absolute_url()``
diff --git a/docs/ref/models/lookups.txt b/docs/ref/models/lookups.txt
index d2d91deb4e..b8e0ff7c96 100644
--- a/docs/ref/models/lookups.txt
+++ b/docs/ref/models/lookups.txt
@@ -26,7 +26,7 @@ all Django builtin lookups are derived:
A lookup expression consists of three parts:
-* Fields part (e.g.
+* Fields part, e.g.
``Book.objects.filter(author__best_friends__first_name...``);
* Transforms part (may be omitted) (e.g. ``__lower__first3chars__reversed``);
* A lookup (e.g. ``__icontains``) that, if omitted, defaults to ``__exact``.
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 1c92ea552b..2fbcd4b942 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -1990,7 +1990,7 @@ them:
.. code-block:: pycon
>>> Person.objects.select_related("hometown").select_for_update().exclude(hometown=None)
- <QuerySet [<Person: ...)>, ...]>
+ <QuerySet [<Person: ...>, ...]>
The ``postgresql``, ``oracle``, and ``mysql`` database backends support
``select_for_update()``. However, MariaDB only supports the ``nowait``
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index 1f3e274141..4e3a201552 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -186,7 +186,7 @@ All attributes should be considered read-only, unless stated otherwise.
.. code-block:: pycon
>>> request.headers
- {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6', ...}
+ {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6', ...)}
>>> "User-Agent" in request.headers
True
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index 8ac7a194f6..fe3792bc5c 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -3668,7 +3668,7 @@ usage.
:doc:`staticfiles</ref/contrib/staticfiles>`’s
:setting:`finders<STATICFILES_FINDERS>`, which by default, are
``'static/'`` app sub-directories and any directories you include in
- :setting:`STATICFILES_DIRS`).
+ :setting:`STATICFILES_DIRS`.
.. setting:: STATIC_URL
diff --git a/docs/releases/1.0-porting-guide.txt b/docs/releases/1.0-porting-guide.txt
index 62e4b86cab..de784fb5f7 100644
--- a/docs/releases/1.0-porting-guide.txt
+++ b/docs/releases/1.0-porting-guide.txt
@@ -620,7 +620,7 @@ Dictionary access to ``HttpRequest``
access; previously, both ``GET`` and ``POST`` data were directly
available on the ``HttpRequest`` object (e.g., you could check for a
piece of form data by using ``if 'some_form_key' in request`` or by
-reading ``request['some_form_key']``. This is no longer supported; if
+reading ``request['some_form_key']``). This is no longer supported; if
you need access to the combined ``GET`` and ``POST`` data, use
``request.REQUEST`` instead.
diff --git a/docs/releases/1.10.txt b/docs/releases/1.10.txt
index 4d04db521f..c13f322170 100644
--- a/docs/releases/1.10.txt
+++ b/docs/releases/1.10.txt
@@ -1204,7 +1204,7 @@ Miscellaneous
* Private ``FileField`` methods ``get_directory_name()`` and ``get_filename()``
are deprecated in favor of performing this work in
:meth:`Storage.generate_filename()
- <django.core.files.storage.Storage.generate_filename>`).
+ <django.core.files.storage.Storage.generate_filename>`.
* Old-style middleware that uses ``settings.MIDDLEWARE_CLASSES`` are
deprecated. :ref:`Adapt old, custom middleware <upgrading-middleware>` and
diff --git a/docs/releases/1.8.1.txt b/docs/releases/1.8.1.txt
index 123ce1661d..179e541876 100644
--- a/docs/releases/1.8.1.txt
+++ b/docs/releases/1.8.1.txt
@@ -53,7 +53,7 @@ Bugfixes
* Fixed queries where an expression was referenced in ``order_by()``, but
wasn't part of the select clause. An example query is
- ``qs.annotate(foo=F('field')).values('pk').order_by('foo'))``
+ ``qs.annotate(foo=F('field')).values('pk').order_by('foo')``
(:ticket:`24615`).
* Fixed a database table name quoting regression (:ticket:`24605`).
diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt
index 33c2635c64..feec1c74e0 100644
--- a/docs/releases/1.8.txt
+++ b/docs/releases/1.8.txt
@@ -1047,7 +1047,7 @@ those writing third-party backends in updating their code:
* ``AdminSite`` no longer takes an ``app_name`` argument and its ``app_name``
attribute has been removed. The application name is always ``admin`` (as
opposed to the instance name which you can still customize using
- ``AdminSite(name="...")``.
+ ``AdminSite(name="...")``).
* The ``ModelAdmin.get_object()`` method (private API) now takes a third
argument named ``from_field`` in order to specify which field should match
diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt
index 563ab3837f..37384c3b8a 100644
--- a/docs/topics/cache.txt
+++ b/docs/topics/cache.txt
@@ -653,7 +653,7 @@ disable caching for a view (using the
.. _i18n-cache-key:
If :setting:`USE_I18N` is set to ``True`` then the generated cache key will
-include the name of the active :term:`language<language code>` -- see also
+include the name of the active :term:`language<language code>` (see also
:ref:`how-django-discovers-language-preference`). This allows you to easily
cache multilingual sites without having to create the cache key yourself.
diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt
index 6fb329dd9a..4cc5634780 100644
--- a/docs/topics/http/sessions.txt
+++ b/docs/topics/http/sessions.txt
@@ -448,7 +448,7 @@ serializing these values is often straightforward
writing a decoder that can reliably get back the same thing that you put in is
more fragile. For example, you run the risk of returning a ``datetime`` that
was actually a string that just happened to be in the same format chosen for
-``datetime``\s).
+``datetime``\s.
Your serializer class must implement two methods,
``dumps(self, obj)`` and ``loads(self, data)``, to serialize and deserialize