title: Submit two forms in a single submit in Django
body: <p>I have two forms in template. At the moment I have two submit buttons.
  Would like to combine those to a single submit button.</p>
  
  <p>Below code is now updating only one form, that's AnswerForm.
  How i can update AnswerReplyForm along with that?</p>
  
  <p>class AnswerView(ObjectEditView):  </p>
  
  <pre><code>form_class = forms.AnswerReplyForm
  answer_form = forms.AnswerForm
  
  model = AnswerReply
  
  
  def get(self, request, pk):
  
      answer = get_object_or_404(Answer, pk = pk)
      answer_reply = AnswerReply.objects.filter(answer_id = pk).order_by('-id')
      self.answer_form = self.answer_form(instance=answer)
      return render(request, 'helpdesk/answer.html', {
          'answer': answer,
          "answer_reply" : answer_reply,
          'obj_type': 'answer reply',
          'form': self.form_class,
          "form2":self.answer_form,
          "pre_reply_from" : self.predefined_reply_form
      })
  
  def post(self, request, pk, *args, **kwargs):
      answer = get_object_or_404(Answer, id=pk)
      answer_reply = AnswerReply.objects.filter(answer_id = pk).order_by('-id')
      self.answer_form = self.answer_form(instance=answer)
  
      obj = self.model()
      obj = self.alter_obj(obj, request, args, kwargs)
  
      form = self.form_class(request.POST, request.FILES, instance=obj)
  
      if form.is_valid():
          form.instance.answer_id = pk
          obj_created = not form.instance.pk
          obj = form.save()
  
  
      return render(request, 'helpdesk/answer.html', {
          'answer': answer,
          "answer_reply" : answer_reply,
          'obj_type': 'answer reply',
          'form': self.form_class,
          "form2":self.answer_form,
      })
  </code></pre>