Opened 11 years ago

Closed 10 years ago

#1689 closed enhancement (fixed)

__getitem__ method for RadioFieldRenderer

Reported by: schneider@… Owned by: Adrian Holovaty
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 10 years ago by Simon G. <dev@…>

Component: Core frameworkdjango.newforms
Triage Stage: UnreviewedDesign decision needed

Moved to newforms as a potential feature request

comment:2 Changed 10 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

This is fixed in newforms.

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