From e68da20596847d6c165183bca52ebba570ccfdaa Mon Sep 17 00:00:00 2001 From: Yahya Ali Date: Thu, 6 Apr 2023 16:08:12 +0500 Subject: [PATCH] [4.2.x] Fixed #34463 -- Corrected code-block directives in docs. Thanks ExTexan for the report. Backport of 263db8af469f0f3a5bd8ddc4a7dd0154c3d1fbca from main --- docs/topics/db/queries.txt | 2 +- docs/topics/i18n/translation.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index 049df3ccd64..7c6c9e18ac3 100644 --- a/docs/topics/db/queries.txt +++ b/docs/topics/db/queries.txt @@ -1376,7 +1376,7 @@ For example, this statement yields a single ``Q`` object that represents the This is equivalent to the following SQL ``WHERE`` clause: -.. code-block: sql +.. code-block:: sql WHERE question LIKE 'Who%' OR question LIKE 'What%' diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt index 6eaf9cae32c..555d4cf70aa 100644 --- a/docs/topics/i18n/translation.txt +++ b/docs/topics/i18n/translation.txt @@ -264,7 +264,7 @@ In a case like this, consider something like the following:: You would get an error when running :djadmin:`django-admin compilemessages `: - .. code-block: pytb + .. code-block:: pytb a format specification for argument 'name', as in 'msgstr[0]', doesn't exist in 'msgid'