Fixed #26265 -- Clarified RadioSelect container's HTML id.
This commit is contained in:
parent
4c1c93032f
commit
53e8ab580f
|
@ -826,6 +826,11 @@ The field-specific output honors the form object's ``auto_id`` setting::
|
||||||
Attributes of ``BoundField``
|
Attributes of ``BoundField``
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
|
.. attribute:: BoundField.auto_id
|
||||||
|
|
||||||
|
The HTML ID attribute for this ``BoundField``. Returns an empty string
|
||||||
|
if :attr:`Form.auto_id` is ``False``.
|
||||||
|
|
||||||
.. attribute:: BoundField.data
|
.. attribute:: BoundField.data
|
||||||
|
|
||||||
This property returns the data for this :class:`~django.forms.BoundField`
|
This property returns the data for this :class:`~django.forms.BoundField`
|
||||||
|
|
|
@ -680,8 +680,8 @@ Selector and checkbox widgets
|
||||||
simply includes ``{{ myform.beatles }}`` -- they'll be output in a ``<ul>``
|
simply includes ``{{ myform.beatles }}`` -- they'll be output in a ``<ul>``
|
||||||
with ``<li>`` tags, as above.
|
with ``<li>`` tags, as above.
|
||||||
|
|
||||||
The outer ``<ul>`` container will receive the ``id`` attribute defined on
|
The outer ``<ul>`` container receives the ``id`` attribute of the widget,
|
||||||
the widget.
|
if defined, or :attr:`BoundField.auto_id` otherwise.
|
||||||
|
|
||||||
When looping over the radio buttons, the ``label`` and ``input`` tags include
|
When looping over the radio buttons, the ``label`` and ``input`` tags include
|
||||||
``for`` and ``id`` attributes, respectively. Each radio button has an
|
``for`` and ``id`` attributes, respectively. Each radio button has an
|
||||||
|
@ -702,8 +702,8 @@ Selector and checkbox widgets
|
||||||
...
|
...
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
The outer ``<ul>`` container will receive the ``id`` attribute defined on
|
The outer ``<ul>`` container receives the ``id`` attribute of the widget,
|
||||||
the widget.
|
if defined, or :attr:`BoundField.auto_id` otherwise.
|
||||||
|
|
||||||
Like :class:`RadioSelect`, you can now loop over the individual checkboxes making
|
Like :class:`RadioSelect`, you can now loop over the individual checkboxes making
|
||||||
up the lists. See the documentation of :class:`RadioSelect` for more details.
|
up the lists. See the documentation of :class:`RadioSelect` for more details.
|
||||||
|
|
Loading…
Reference in New Issue