7👍
✅
All I needed to do was pass the instance of the Report Form I was working with along to the formset, nice and easy. So in my CreateView’s post method, I changed the declaration of report_attachment_form to report_attachment_form = ReportAttachmentFormSet(self.request.POST, self.request.FILES, instance=form.instance)
and we’re good as gold.
Source:stackexchange.com