Opened 3 years ago

Closed 3 years ago

Last modified 3 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 Changed 3 years ago by Tim Graham

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 Changed 3 years ago by Daniele Procida

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 Changed 3 years ago by saoili

Owner: changed from nobody to anonymous
Status: newassigned

comment:4 Changed 3 years ago by anonymous

Owner: anonymous deleted
Status: assignednew

comment:5 Changed 3 years ago by anonymous

Owner: set to anonymous
Status: newassigned

comment:6 Changed 3 years ago by saoili

Owner: changed from anonymous to saoili

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

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 Changed 3 years ago by Tim Graham <timograham@…>

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