{{{
Required form fields now have the required HTML attribute. Set the new
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.
}}}
i would expect all of that (it's rendered, can be disabled, isn't rendered
in formsets) to appear somewhere around
https://docs.djangoproject.com/el/1.10/ref/forms/fields/#required, but it
does not.
--
Ticket URL: <https://code.djangoproject.com/ticket/27387>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Old description:
> https://docs.djangoproject.com/en/1.10/releases/1.10/#forms says
>
> {{{
> Required form fields now have the required HTML attribute. Set the new
> 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.
> }}}
> i would expect all of that (it's rendered, can be disabled, isn't
> rendered in formsets) to appear somewhere around
> https://docs.djangoproject.com/el/1.10/ref/forms/fields/#required, but it
> does not.
New description:
https://docs.djangoproject.com/en/1.10/releases/1.10/#forms says
{{{
Required form fields now have the required HTML attribute. Set the new
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.
}}}
i would expect all of that (it's rendered, can be disabled, isn't rendered
in formsets) to appear somewhere around
https://docs.djangoproject.com/el/1.10/ref/forms/fields/#required, but it
does not.
ref https://code.djangoproject.com/ticket/27299. I guess this per-widget
option should rather not be mentioned in the field documentation...?
--
--
Ticket URL: <https://code.djangoproject.com/ticket/27387#comment:1>
* stage: Unreviewed => Accepted
Comment:
See ec6121693f112ae33b653b4364e812722d2eb567 for the change and all places
the documentation was updated. I guess it's a matter of judgment how many
times to repeat certain things and to add links as appropriate.
--
Ticket URL: <https://code.djangoproject.com/ticket/27387#comment:2>
* owner: nobody => Zbigniew Siciarz
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/27387#comment:3>
Comment (by Zbigniew Siciarz):
It makes sense to me to add a `versionadded` note and refer to 1.10
release notes for details. I've created a PR here:
https://github.com/django/django/pull/7485
--
Ticket URL: <https://code.djangoproject.com/ticket/27387#comment:4>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/27387#comment:5>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/27387#comment:6>
* needs_better_patch: 0 => 1
* stage: Ready for checkin => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/27387#comment:7>
* component: Forms => Documentation
--
Ticket URL: <https://code.djangoproject.com/ticket/27387#comment:8>
* needs_better_patch: 1 => 0
Comment:
New [https://github.com/django/django/pull/7848 PR].
--
Ticket URL: <https://code.djangoproject.com/ticket/27387#comment:9>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"611ef422b173b450b1fc6f7f94eb262961b24e54" 611ef42]:
{{{
#!CommitTicketReference repository=""
revision="611ef422b173b450b1fc6f7f94eb262961b24e54"
Fixed #27387 -- Doc'd required HTML attribute in Field.required docs.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27387#comment:10>
Comment (by Tim Graham <timograham@…>):
In [changeset:"f3af0acb09219e82ad2d32b16e69ef600abddc07" f3af0acb]:
{{{
#!CommitTicketReference repository=""
revision="f3af0acb09219e82ad2d32b16e69ef600abddc07"
[1.10.x] Fixed #27387 -- Doc'd required HTML attribute in Field.required
docs.
Backport of 611ef422b173b450b1fc6f7f94eb262961b24e54 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27387#comment:11>