1
0
mirror of https://github.com/django/django.git synced 2025-05-05 22:47:32 +00:00

[1.10.x] Fixed #27387 -- Doc'd required HTML attribute in Field.required docs.

Backport of 611ef422b173b450b1fc6f7f94eb262961b24e54 from master
This commit is contained in:
Claude Paroz 2017-01-14 11:36:52 +01:00 committed by Tim Graham
parent 6faa7a2e25
commit f3af0acb09

View File

@ -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``
---------