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.
This commit is contained in:
Mariusz Felisiak 2022-05-31 07:40:54 +02:00
parent 1058fc7023
commit ac90529cc5
31 changed files with 128 additions and 127 deletions

View file

@ -22,7 +22,7 @@ Basic file uploads
Consider a form containing a :class:`~django.forms.FileField`:
.. code-block:: python
:caption: forms.py
:caption: ``forms.py``
from django import forms
@ -46,7 +46,7 @@ Most of the time, you'll pass the file data from ``request`` into the form as
described in :ref:`binding-uploaded-files`. This would look something like:
.. code-block:: python
:caption: views.py
:caption: ``views.py``
from django.http import HttpResponseRedirect
from django.shortcuts import render
@ -146,7 +146,7 @@ If you want to upload multiple files using one form field, set the ``multiple``
HTML attribute of field's widget:
.. code-block:: python
:caption: forms.py
:caption: ``forms.py``
from django import forms
@ -158,7 +158,7 @@ Then override the ``post`` method of your
uploads:
.. code-block:: python
:caption: views.py
:caption: ``views.py``
from django.views.generic.edit import FormView
from .forms import FileFieldForm

View file

@ -767,7 +767,7 @@ so that it takes the instance namespace into consideration when creating and
displaying polls.
.. code-block:: python
:caption: urls.py
:caption: ``urls.py``
from django.urls import include, path
@ -777,7 +777,7 @@ displaying polls.
]
.. code-block:: python
:caption: polls/urls.py
:caption: ``polls/urls.py``
from django.urls import path
@ -836,7 +836,7 @@ module, or a string reference to the module, to :func:`~django.urls.include`,
not the list of ``urlpatterns`` itself.
.. code-block:: python
:caption: polls/urls.py
:caption: ``polls/urls.py``
from django.urls import path
@ -850,7 +850,7 @@ not the list of ``urlpatterns`` itself.
]
.. code-block:: python
:caption: urls.py
:caption: ``urls.py``
from django.urls import include, path