Django - empty form cannot be saved in database
问题 I have a form in which, user specifies lawyer-spec and save the data to the database. However I get an error that **null value in column "lawyer_spec" violates not-null constraint** So the data from the form is not processed properly. EDIT: mthod form_invalid prints empty line, and then two numbers ('pk' and 'lawyer_id') forms.py class MakeAppointmentForm(forms.ModelForm): first_name = forms.CharField(required=True) class Meta: model = CalendarAppointmentsReserved fields = ['case'] def __init