summaryrefslogtreecommitdiff
path: root/docs/ref/models
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 07:44:27 +0200
commit6c0ee6179796aa67a2403d85f2759bd4d45c93bc (patch)
treeb505f8d05ae716475252c0499435fee185d1ed64 /docs/ref/models
parentd783ce3d8df10b9b8c99d67418d45934238a49db (diff)
[4.1.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/ref/models')
-rw-r--r--docs/ref/models/expressions.txt2
-rw-r--r--docs/ref/models/fields.txt4
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt
index da533ba5c3..08479a561c 100644
--- a/docs/ref/models/expressions.txt
+++ b/docs/ref/models/expressions.txt
@@ -331,7 +331,7 @@ The ``Func`` API is as follows:
customize the SQL as needed. For example:
.. code-block:: python
- :caption: django/db/models/functions.py
+ :caption: ``django/db/models/functions.py``
class ConcatPair(Func):
...
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 491bd791a8..da65c62766 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -1458,7 +1458,7 @@ Relationships defined this way on :ref:`abstract models
concrete model and are not relative to the abstract model's ``app_label``:
.. code-block:: python
- :caption: products/models.py
+ :caption: ``products/models.py``
from django.db import models
@@ -1469,7 +1469,7 @@ concrete model and are not relative to the abstract model's ``app_label``:
abstract = True
.. code-block:: python
- :caption: production/models.py
+ :caption: ``production/models.py``
from django.db import models
from products.models import AbstractCar