mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
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:
parent
1058fc7023
commit
ac90529cc5
31 changed files with 128 additions and 127 deletions
|
@ -2977,7 +2977,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 import admin
|
||||
|
||||
|
@ -2991,7 +2991,7 @@ to reference your :class:`AdminSite` subclass.
|
|||
|
||||
|
||||
.. code-block:: python
|
||||
:caption: myproject/urls.py
|
||||
:caption: ``myproject/urls.py``
|
||||
|
||||
from django.urls import path
|
||||
|
||||
|
@ -3018,7 +3018,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
|
||||
|
||||
|
@ -3026,7 +3026,7 @@ returns a site instance.
|
|||
...
|
||||
|
||||
.. code-block:: python
|
||||
:caption: myproject/apps.py
|
||||
:caption: ``myproject/apps.py``
|
||||
|
||||
from django.contrib.admin.apps import AdminConfig
|
||||
|
||||
|
@ -3034,7 +3034,7 @@ returns a site instance.
|
|||
default_site = 'myproject.admin.MyAdminSite'
|
||||
|
||||
.. code-block:: python
|
||||
:caption: myproject/settings.py
|
||||
:caption: ``myproject/settings.py``
|
||||
|
||||
INSTALLED_APPS = [
|
||||
...
|
||||
|
|
|
@ -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``
|
||||
|
||||
document.addEventListener('formset:added', (event) => {
|
||||
if (event.detail.formsetName == 'author_set') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue