Opened 10 years ago

Closed 9 years ago

#1689 closed enhancement (fixed)

__getitem__ method for RadioFieldRenderer

Reported by: schneider@… Owned by: adrian
Component: Forms Version:
Severity: normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:



I think the class RadioFieldRenderer could use a getitem method so that one can write things like {{form.field.field_list.1.option}}. Iterating over the fields does not always work e.g. when you want to have a table with one radio button per row and the rest of the row is dependent on the radio button.



Change History (2)

comment:1 Changed 9 years ago by Simon G. <dev@…>

  • Component changed from Core framework to django.newforms
  • Triage Stage changed from Unreviewed to Design decision needed

Moved to newforms as a potential feature request

comment:2 Changed 9 years ago by adrian

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

This is fixed in newforms.

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