1👍
✅
This page has information on how to iterate over each radio button:
https://docs.djangoproject.com/en/dev/ref/forms/widgets/
See “class RadioSelect”.
1👍
Try form.fieldname.widget.renderer[%CHOICE%]
. For example if you have choices = (('o', 'one'),('t', 'two'))
, then valid %CHOICE%
would be 'o'
or 't'
.
- [Answered ]-How to preprocess values passed to CreateView
- [Answered ]-Django south and django-admin-tools conflict
Source:stackexchange.com