summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial02.txt
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-05-31 07:40:54 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-06-27 08:10:48 +0200
commit1a9098166e58704b11dcf088948efa89e088b6f5 (patch)
tree47fb0eb85fc0df42ddbaf7d4e1dee132c610177f /docs/intro/tutorial02.txt
parent37f4de2deb12465f8ff8bcb2fd1c20a904cb8f2b (diff)
[3.2.x] Fixed docs build with sphinxcontrib-spelling 7.5.0+.
sphinxcontrib-spelling 7.5.0+ includes captions of figures in the set of nodes for which the text is checked. Backport of ac90529cc58507d9a07610809a795ec5fc3cbf8c from main.
Diffstat (limited to 'docs/intro/tutorial02.txt')
-rw-r--r--docs/intro/tutorial02.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt
index b315027c5d..2fa780178a 100644
--- a/docs/intro/tutorial02.txt
+++ b/docs/intro/tutorial02.txt
@@ -141,7 +141,7 @@ These concepts are represented by Python classes. Edit the
:file:`polls/models.py` file so it looks like this:
.. code-block:: python
- :caption: polls/models.py
+ :caption: ``polls/models.py``
from django.db import models
@@ -217,7 +217,7 @@ add that dotted path to the :setting:`INSTALLED_APPS` setting. It'll look like
this:
.. code-block:: python
- :caption: mysite/settings.py
+ :caption: ``mysite/settings.py``
INSTALLED_APPS = [
'polls.apps.PollsConfig',
@@ -424,7 +424,7 @@ representation of this object. Let's fix that by editing the ``Question`` model
``Choice``:
.. code-block:: python
- :caption: polls/models.py
+ :caption: ``polls/models.py``
from django.db import models
@@ -448,7 +448,7 @@ automatically-generated admin.
Let's also add a custom method to this model:
.. code-block:: python
- :caption: polls/models.py
+ :caption: ``polls/models.py``
import datetime
@@ -646,7 +646,7 @@ have an admin interface. To do this, open the :file:`polls/admin.py` file, and
edit it to look like this:
.. code-block:: python
- :caption: polls/admin.py
+ :caption: ``polls/admin.py``
from django.contrib import admin