If you are using ModelForm , just follow Dan's advice.
If, however, you just use Form , then you may have to specify how to handle the validation. Documentation Example
class YourForm(forms.Form): ... def clean_field(self): data = self.cleaned_data['field'] if not data: data = 'default value' return data
Wallybay
source share