26👍
✅
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 }}
Source:stackexchange.com