diff options
| author | Claude Paroz <claude@2xlibre.net> | 2017-01-14 11:36:52 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-14 08:13:53 -0500 |
| commit | f3af0acb09219e82ad2d32b16e69ef600abddc07 (patch) | |
| tree | 4655f17d55a046db43e391ac115cac6f4f62103d /docs | |
| parent | 6faa7a2e2567c142da2d91e84589c4228873eb62 (diff) | |
[1.10.x] Fixed #27387 -- Doc'd required HTML attribute in Field.required docs.
Backport of 611ef422b173b450b1fc6f7f94eb262961b24e54 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/forms/fields.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 49e326b300..8aaee62a28 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -92,6 +92,15 @@ then ``clean()`` will return a *normalized* empty value rather than raising For other ``Field`` classes, it might be ``None``. (This varies from field to field.) +Widgets of required form fields have the ``required`` HTML attribute. Set the +:attr:`Form.use_required_attribute` attribute to ``False`` to disable it. The +``required`` attribute isn't included on forms of formsets because the browser +validation may not be correct when adding and deleting formsets. + +.. versionadded:: 1.10 + + Support for the ``required`` HTML attribute was added. + ``label`` --------- |
