Opened 13 years ago

Closed 12 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: no UI/UX: no



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 12 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 12 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