#27387: Rendering "required" as HTML attribute is not documented
-------------------------------------+-------------------------------------
Reporter: karyon | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Forms | Version: 1.10
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by karyon):
* 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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.e7c593b9b3d2fa61f2981b61ce23fed5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.