I have a ModelForm with several fields. Some of them should not be checked when I call form.is_valid(). However, I still want them displayed in the template so I don’t think I can exclude them from the form. Is there a way to overload form.is_valid() to loop through all the fields and only actually validate the ones I care about?
Share
A quick solution without any other research is it overwrite the field’s clean method to essentially check nothing. That way when clean is called for that field, validation will pass.