diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-05-31 07:40:54 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-05-31 11:17:01 +0200 |
| commit | ac90529cc58507d9a07610809a795ec5fc3cbf8c (patch) | |
| tree | 6c38f93d38cd8e6f59177fe2e5536d951a602af8 /docs/topics/forms | |
| parent | 1058fc7023d04d07c22a5e667b6a446705119b14 (diff) | |
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.
Diffstat (limited to 'docs/topics/forms')
| -rw-r--r-- | docs/topics/forms/index.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/topics/forms/index.txt b/docs/topics/forms/index.txt index 3b3dccc229..464c6b86cb 100644 --- a/docs/topics/forms/index.txt +++ b/docs/topics/forms/index.txt @@ -227,7 +227,7 @@ We already know what we want our HTML form to look like. Our starting point for it in Django is this: .. code-block:: python - :caption: forms.py + :caption: ``forms.py`` from django import forms @@ -277,7 +277,7 @@ To handle the form we need to instantiate it in the view for the URL where we want it to be published: .. code-block:: python - :caption: views.py + :caption: ``views.py`` from django.http import HttpResponseRedirect from django.shortcuts import render @@ -404,7 +404,7 @@ Consider a more useful form than our minimal example above, which we could use to implement "contact me" functionality on a personal website: .. code-block:: python - :caption: forms.py + :caption: ``forms.py`` from django import forms @@ -453,7 +453,7 @@ values to a Python ``int`` and ``float`` respectively. Here's how the form data could be processed in the view that handles this form: .. code-block:: python - :caption: views.py + :caption: ``views.py`` from django.core.mail import send_mail @@ -526,7 +526,7 @@ In your templates: Then you can configure the :setting:`FORM_RENDERER` setting: .. code-block:: python - :caption: settings.py + :caption: ``settings.py`` from django.forms.renderers import TemplatesSetting |
