Opened 8 years ago

Last modified 7 years ago

#27387 closed Cleanup/optimization

Rendering "required" as HTML attribute is not documented — at Version 1

Reported by: karyon Owned by: nobody
Component: Documentation Version: 1.10
Severity: Normal Keywords:
Cc: karyon Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by karyon)

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...?

Change History (1)

comment:1 by karyon, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top