what I want to do is to add a radio button into the last column of a
data table. The user shall be able to select exactly one of the
table's rows. I was thinking about defining a SelectForm with one
'select'-field (ChoiceField) with a RadioSelect-widget. In the
template, I would then need to iterate over the data (each data row)
AND each OPTION of the radio select widget.
How would I do that? Just referring to
{{ selectform.fields.selectfield.choices }} in the template gives me
the list of choices (i.e. each single choice when I loop over it), but
not the html I want.
Are there any other approaches to the problem?
Thanks for your suggestions,
Andreas
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment