diff options
| author | David Smith <smithdc@gmail.com> | 2025-05-27 17:37:22 +0100 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-08-25 10:51:10 -0300 |
| commit | 6f8e23d1c10c7ce32cea82b65ad2af640015f147 (patch) | |
| tree | 692a42d2a3c54a6610b17cc14679734973d98d89 /docs/ref/utils.txt | |
| parent | ef2f16bc4824ca2b10b7f2845baf4d313c9c0da1 (diff) | |
Refs #36485 -- Removed unnecessary parentheses in :meth: and :func: roles in docs.
Diffstat (limited to 'docs/ref/utils.txt')
| -rw-r--r-- | docs/ref/utils.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 63f98dc2c3..18c5681515 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -348,7 +348,7 @@ https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004 An optional string containing the MIME type of the stylesheet. If not specified, Django will attempt to guess it by using Python's - :py:func:`mimetypes.guess_type()`. Use ``mimetype=None`` if you don't + :py:func:`mimetypes.guess_type`. Use ``mimetype=None`` if you don't want your stylesheet to have a MIME type specified. .. attribute:: media @@ -977,10 +977,10 @@ appropriate entities. .. function:: override(timezone) This is a Python context manager that sets the :ref:`current time zone - <default-current-time-zone>` on entry with :func:`activate()`, and restores + <default-current-time-zone>` on entry with :func:`activate`, and restores the previously active time zone on exit. If the ``timezone`` argument is ``None``, the :ref:`current time zone <default-current-time-zone>` is unset - on entry with :func:`deactivate()` instead. + on entry with :func:`deactivate` instead. ``override`` is also usable as a function decorator. @@ -1133,8 +1133,8 @@ For a complete discussion on the usage of the following see the .. function:: get_language() Returns the currently selected language code. Returns ``None`` if - translations are temporarily deactivated (by :func:`deactivate_all()` or - when ``None`` is passed to :func:`override()`). + translations are temporarily deactivated (by :func:`deactivate_all` or + when ``None`` is passed to :func:`override`). .. function:: get_language_bidi() |
