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:04:25 +0200
commit4d20d2f7c2b8e74c3e85bd0716ebdcb3b35a70e6 (patch)
tree40722f3317489da559dce2c04da404f1fe61709d /docs/intro/tutorial02.txt
parent8a294ee2e0e30f073f764310c74899e385a302ec (diff)
[4.0.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 8050848035..df595e947c 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