Opened 19 years ago

Closed 18 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

Description

Hi,

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.

Regards

chris

Change History (2)

comment:1 by Simon G. <dev@…>, 18 years ago

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

Moved to newforms as a potential feature request

comment:2 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

This is fixed in newforms.

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