Opened 20 years ago
Closed 19 years ago
#1689 closed enhancement (fixed)
__getitem__ method for RadioFieldRenderer
| Reported by: | 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 , 19 years ago
| Component: | Core framework → django.newforms |
|---|---|
| Triage Stage: | Unreviewed → Design decision needed |
Note:
See TracTickets
for help on using tickets.
Moved to newforms as a potential feature request