Hi all,
I would like to personlize a widget adding an extra link. In particular I want to change the forms.widgets.CheckboxSelectMultiple .
class MultiChoiceFilterWidget(forms.widgets.CheckboxSelectMultiple):
template_name = 'web_admin/partial/checkbox.html'
class PurposesChoiceForm(ModelForm):
'myField': forms.widgets.CheckboxSelectMultiple,
(indented correctly)
However, there's no way to make it running, what else should I do?
I also tried to put the .html directly inside my app template folder such as web/template/django/forms/widget/checkbox.html but with no luck.
does anyone can point me to a working example or tutorial?
do I've to setup the TemplatesSetting or is there another way to do it?
PS: i would like to personlize the widget just for this form, and not for all the forms.