Is there any easy way to assign class=radio to all elements whose widget is radioselect in a form ?
I know I can write such that
rb = forms.ChoiceField( widget=forms.RadioSelect(attrs='class':'radio'))
for all radio buttons in the form but I think there should be other ways. Because I probably use it for all radio buttons and it is not funny to write this for all.
You can create your own widget, like this: