Skip to content

Commit

Permalink
[3.0.x] Corrected outputting BooleanField as HTML in forms docs.
Browse files Browse the repository at this point in the history
Backport of 34a69c2 from master
  • Loading branch information
tim-schilling authored and felixxm committed Apr 24, 2020
1 parent cb10c33 commit a3e4591
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/ref/forms/api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a3e4591

Please sign in to comment.