def post(self, request, *args, **kwargs):
    formset = self.construct_formset()
    if formset.is_valid():
        return self.formset_valid(formset)
    else:
        return self.formset_invalid(formset)
def post(self, request, *args, **kwargs):
    formset = self.construct_formset()
    if formset.is_valid():
        return self.formset_valid(formset)
    else:
        return self.formset_invalid(formset)