I\'ve a settings page where users can select if they want to receive a newsletter or not.
I want a checkbox for this, and I want that Django select it if \'newsletter\'
class PlanYourHouseForm(forms.ModelForm): class Meta: model = PlanYourHouse exclude = ['is_deleted'] widgets = { 'is_anything_required' : CheckboxInput(attrs={'class': 'required checkbox form-control'}), }