[Answered ]-Integrity Error *_id may not be null

2👍

A formset is a set of forms. It doesn’t have an applicant ID. Trying to set one doesn’t make sense.

You’re actually almost doing the right thing already. In the GET block you’re correctly passing the instance argument to the formset instantiation, to associate it with an Applicant. But you’re not doing that in the POST block, and you should be:

    form = ApplicantForm(request.POST, instance=applicant)
    formset = EducationInlineFormSet(request.POST, instance=applicant)

Leave a comment