summaryrefslogtreecommitdiff
path: root/docs/ref/forms
diff options
context:
space:
mode:
authorTim Schilling <schillingt@better-simple.com>2020-03-30 20:11:10 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-04-24 12:15:50 +0200
commita3e4591020ca6d2fae10105b687e93326a185c0b (patch)
treef9fbc407668a97c8e5f13a2a458df48e280f01fc /docs/ref/forms
parentcb10c33e2760b4e4da29cefa93028b648bbb7e09 (diff)
[3.0.x] Corrected outputting BooleanField as HTML in forms docs.
Backport of 34a69c24584ec7d842dbf266659b25527cd73909 from master
Diffstat (limited to 'docs/ref/forms')
-rw-r--r--docs/ref/forms/api.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt
index 0c7614bba5..da57c6bce2 100644
--- a/docs/ref/forms/api.txt
+++ b/docs/ref/forms/api.txt
@@ -470,10 +470,10 @@ Notice the following:
* Each field type has a default HTML representation. ``CharField`` is
represented by an ``<input type="text">`` and ``EmailField`` by an
- ``<input type="email">``.
- ``BooleanField`` is represented by an ``<input type="checkbox">``. Note
- these are merely sensible defaults; you can specify which HTML to use for
- a given field by using widgets, which we'll explain shortly.
+ ``<input type="email">``. ``BooleanField(null=False)`` is represented by an
+ ``<input type="checkbox">``. Note these are merely sensible defaults; you can
+ specify which HTML to use for a given field by using widgets, which we'll
+ explain shortly.
* The HTML ``name`` for each tag is taken directly from its attribute name
in the ``ContactForm`` class.