Hi all, I would like to personlize a widget adding an extra link. In particular I want to change the forms.widgets.CheckboxSelectMultiple . I've read this: https://docs.djangoproject.com/en/2.0/ref/forms/renderers/ but I can't still make it working, I did this piece of code
class MultiChoiceFilterWidget(forms.widgets.CheckboxSelectMultiple): template_name = 'web_admin/partial/checkbox.html' class PurposesChoiceForm(ModelForm): class Meta: model = MyModel fields = ('myField',) widgets = { '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. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2bbc0c16-057f-4a69-a3ac-397f605ee302%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.