summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2020-12-14 22:19:00 -0800
committerGitHub <noreply@github.com>2020-12-15 07:19:00 +0100
commit550297d20d085bc5a440d905cd3cb2e286588ca8 (patch)
tree7eb34c606850541d1296456eea8ef5c250eed165 /docs/topics
parent593829a5aba605481a66c7c87e0e45061ee08bb5 (diff)
Added backticks to code literals in various docs.
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/checks.txt6
-rw-r--r--docs/topics/db/queries.txt3
-rw-r--r--docs/topics/forms/formsets.txt2
3 files changed, 6 insertions, 5 deletions
diff --git a/docs/topics/checks.txt b/docs/topics/checks.txt
index f4cea90447..438139ad31 100644
--- a/docs/topics/checks.txt
+++ b/docs/topics/checks.txt
@@ -47,9 +47,9 @@ check function::
return errors
The check function *must* accept an ``app_configs`` argument; this argument is
-the list of applications that should be inspected. If None, the check must be
-run on *all* installed apps in the project. The ``**kwargs`` argument is required
-for future expansion.
+the list of applications that should be inspected. If ``None``, the check must
+be run on *all* installed apps in the project. The ``**kwargs`` argument is
+required for future expansion.
Messages
--------
diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt
index c92b8b0944..c3b7948caa 100644
--- a/docs/topics/db/queries.txt
+++ b/docs/topics/db/queries.txt
@@ -1254,7 +1254,8 @@ Things get more complicated if you use inheritance. Consider a subclass of
django_blog = ThemeBlog(name='Django', tagline='Django is easy', theme='python')
django_blog.save() # django_blog.pk == 3
-Due to how inheritance works, you have to set both ``pk`` and ``id`` to None::
+Due to how inheritance works, you have to set both ``pk`` and ``id`` to
+``None``::
django_blog.pk = None
django_blog.id = None
diff --git a/docs/topics/forms/formsets.txt b/docs/topics/forms/formsets.txt
index 64f740a997..d8316c913a 100644
--- a/docs/topics/forms/formsets.txt
+++ b/docs/topics/forms/formsets.txt
@@ -153,7 +153,7 @@ protects against memory exhaustion attacks using forged ``POST`` requests::
>>> formset.non_form_errors()
['Please submit at most 1000 forms.']
-When ``absolute_max`` is None, it defaults to ``max_num + 1000``. (If
+When ``absolute_max`` is ``None``, it defaults to ``max_num + 1000``. (If
``max_num`` is ``None``, it defaults to ``2000``).
If ``absolute_max`` is less than ``max_num``, a ``ValueError`` will be raised.