[Solved]-Django 'ManagementForm data is missing or has been tampered with' when saving modelForms with foreign key link


You have neither diseaseFormSet nor diseaseFormSet‘s management form in your template, yet you try to instantiate the formset. Formsets require the hidden management form which tells django how many forms are in the set.

Insert this into your HTML

{{ diseaseFormSet.as_table }} 
{{ diseaseFormSet.management_form }}

Leave a comment