Opened 2 years ago

Closed 23 months ago

Last modified 23 months 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: EvilDMP 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 23 months ago by timo

  • Easy pickings set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from Add id_for_label in Django forms api documentation to Add id_for_label in Django forms topic documentation
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Uncategorized to Cleanup/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 23 months ago by EvilDMP

  • Cc EvilDMP 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 23 months ago by saoili

  • Owner changed from nobody to anonymous
  • Status changed from new to assigned

comment:4 Changed 23 months ago by anonymous

  • Owner anonymous deleted
  • Status changed from assigned to new

comment:5 Changed 23 months ago by anonymous

  • Owner set to anonymous
  • Status changed from new to assigned

comment:6 Changed 23 months ago by saoili

  • Owner changed from anonymous to saoili

comment:8 Changed 23 months ago by Tim Graham <timograham@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

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 23 months 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