From 34a69c24584ec7d842dbf266659b25527cd73909 Mon Sep 17 00:00:00 2001 From: Tim Schilling Date: Mon, 30 Mar 2020 20:11:10 -0500 Subject: [PATCH] Corrected outputting BooleanField as HTML in forms docs. --- docs/ref/forms/api.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index 6919f600b1..8bf8f3c9c1 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 ```` and ``EmailField`` by an - ````. - ``BooleanField`` is represented by an ````. 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. + ````. ``BooleanField(null=False)`` is represented by an + ````. 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.