def new_quote(request):
    QuoteFormSet = modelformset_factory(Quote, form=QuoteForm, extra=2)
if request.method == 'POST':
    formset = QuoteFormSet(request.POST, request.FILES)
if formset.is_valid():
    formset.save()
return HttpResponseRedirect('/')
Save a formset of custom forms django