Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#20567 closed Cleanup/optimization (fixed)

Document BoundField.id_for_label and how to set the 'id' of a widget

Reported by: Jorge C. Leitão Owned by: Tim Graham
Component: Documentation Version: 1.5
Severity: Normal Keywords:
Cc: Jorge C. Leitão, timograham@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

By the accepted answer on this stackoverflow question, it seems it is possible to override the 'id' attribute of a widget without interfering with django's forms framework.

I think this issue of initial values of attrs should be better documented on built-in widgets.

Change History (5)

comment:1 Changed 3 years ago by Tim Graham

Needs documentation: unset
Needs tests: unset
Owner: changed from nobody to Tim Graham
Patch needs improvement: unset
Status: newassigned
Triage Stage: UnreviewedAccepted

I'll work on this. Think it makes sense to also document BoundField.id_for_label as noted in #12856.

comment:2 Changed 3 years ago by Tim Graham

Cc: timograham@… added
Has patch: set
Summary: Documenting form widget initial attrsDocument BoundField.id_for_label and how to set the 'id' of a widget

comment:3 Changed 3 years ago by Kamu

Triage Stage: AcceptedReady for checkin

comment:4 Changed 3 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In 175a102ddceae2ebd1a4e03916a23adafc35bda5:

Fixed #20567 - Documented BoundField.id_for_label.

Thanks littlepig for the suggestion.

comment:5 Changed 3 years ago by Tim Graham <timograham@…>

In 3bd9852401cfbc8a1dfec4082303a5514ee69bf4:

[1.5.x] Fixed #20567 - Documented BoundField.id_for_label.

Thanks littlepig for the suggestion.

Backport of 175a102ddc from master.

Note: See TracTickets for help on using tickets.
Back to Top