Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#21223 closed Cleanup/optimization (fixed)

Add id_for_label in Django forms topic documentation

Reported by: ebertti@… Owned by: saoili
Component: Documentation Version: 1.5
Severity: Normal Keywords: form, afraid-to-commit
Cc: Daniele Procida Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Please, add this feature to the documentations.

https://docs.djangoproject.com/en/dev/topics/forms/#looping-over-the-form-s-fields

{{ field.id_for_label }}
The id of the field that will be used in the input element’s field.

I need to see a lot of files to find something to get this value of a form field.

Change History (9)

comment:1 by Tim Graham, 11 years ago

Easy pickings: set
Summary: Add id_for_label in Django forms api documentationAdd id_for_label in Django forms topic documentation
Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

It's already in the forms API docs, but yes, we could add it the topic doc as you've suggested.

comment:2 by Daniele Procida, 11 years ago

Cc: Daniele Procida added
Keywords: afraid-to-commit added

I've marked this ticket as especially suitable for first-time committers or people following the Don't be afraid to commit tutorial. If you're tackling this ticket, please don't hesitate to ask me for guidance if you'd like any, either here or on the Django IRC channels, where I can be found as EvilDMP.

comment:3 by saoili, 11 years ago

Owner: changed from nobody to anonymous
Status: newassigned

comment:4 by anonymous, 11 years ago

Owner: anonymous removed
Status: assignednew

comment:5 by anonymous, 11 years ago

Owner: set to anonymous
Status: newassigned

comment:6 by saoili, 11 years ago

Owner: changed from anonymous to saoili

comment:8 by Tim Graham <timograham@…>, 11 years ago

Resolution: fixed
Status: assignedclosed

In 6e7de2edb0565e0ea2fd4ff6701e97ead67138b9:

[1.5.x] Fixed #21223 -- Added form.id_for_label to topic guide.

Thanks ebertti at yahoo.com.br for the suggestion.

Backport of 018e2c055a from master

comment:9 by Tim Graham <timograham@…>, 11 years ago

In 07ebd23254acab0677aca8baf76440811e9473e2:

[1.6.x] Fixed #21223 -- Added form.id_for_label to topic guide.

Thanks ebertti at yahoo.com.br for the suggestion.

Backport of 018e2c055a from master

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