summaryrefslogtreecommitdiff
path: root/docs/ref/contrib/admin
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/ref/contrib/admin
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/ref/contrib/admin')
-rw-r--r--docs/ref/contrib/admin/index.txt10
-rw-r--r--docs/ref/contrib/admin/javascript.txt4
2 files changed, 7 insertions, 7 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index 4bafc5e1b8..7a51d11061 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -3093,7 +3093,7 @@ it instead of with the default site. Finally, update :file:`myproject/urls.py`
to reference your :class:`AdminSite` subclass.
.. code-block:: python
- :caption: myapp/admin.py
+ :caption: ``myapp/admin.py``
from django.contrib.admin import AdminSite
@@ -3107,7 +3107,7 @@ to reference your :class:`AdminSite` subclass.
.. code-block:: python
- :caption: myproject/urls.py
+ :caption: ``myproject/urls.py``
from django.urls import path
@@ -3134,7 +3134,7 @@ to the dotted import path of either a ``AdminSite`` subclass or a callable that
returns a site instance.
.. code-block:: python
- :caption: myproject/admin.py
+ :caption: ``myproject/admin.py``
from django.contrib import admin
@@ -3142,7 +3142,7 @@ returns a site instance.
...
.. code-block:: python
- :caption: myproject/apps.py
+ :caption: ``myproject/apps.py``
from django.contrib.admin.apps import AdminConfig
@@ -3150,7 +3150,7 @@ returns a site instance.
default_site = 'myproject.admin.MyAdminSite'
.. code-block:: python
- :caption: myproject/settings.py
+ :caption: ``myproject/settings.py``
INSTALLED_APPS = [
...
diff --git a/docs/ref/contrib/admin/javascript.txt b/docs/ref/contrib/admin/javascript.txt
index 05731c57b0..9645f6abbc 100644
--- a/docs/ref/contrib/admin/javascript.txt
+++ b/docs/ref/contrib/admin/javascript.txt
@@ -32,7 +32,7 @@ In your custom ``change_form.html`` template, extend the
{% endblock %}
.. code-block:: javascript
- :caption: app/static/app/formset_handlers.js
+ :caption: ``app/static/app/formset_handlers.js``
(function($) {
$(document).on('formset:added', function(event, $row, formsetName) {
@@ -70,7 +70,7 @@ listen to the event triggered from there. For example:
{% endblock %}
.. code-block:: javascript
- :caption: app/static/app/unregistered_handlers.js
+ :caption: ``app/static/app/unregistered_handlers.js``
django.jQuery(document).on('formset:added', function(event, $row, formsetName) {
// Row added