How do I make certain fields in a ModelForm required=False?
If I have:
class ThatForm(ModelForm): class Meta: widgets = {\"text\": Textarea(require
you ought to add blank=True to the corresponding model
blank=True
The documentation says
If the model field has blank=True, then required is set to False on the form field. Otherwise, required=True.
Also see the documentation for blank itself.