Probably you will need to create your custom widget and override the
method:
def id_for_label(self, id_):
# See the comment for RadioSelect.id_for_label()
if id_:
id_ += '_0'
return id_
id_for_label = classmethod(id_for_label)
at the checkboxmultiple widg
I'd like to specify a unique id for each checkbox iteration in a
CheckboxSelectMultiple setup. This is what I have so far:
grading = forms.BooleanField(label="Site Grading",
widget=forms.CheckboxSelectMultiple(choices=grading_choices))
So in my form using the tag {{ form.grading }} gives me:
2 matches
Mail list logo