title: Django - detect which form was submitted in a page
body: <p>I have multiple form fields, and multiple submit buttons on a same page. I want to detect by which form field a POST request is triggered. </p>
  
  <p>I am using <code>CBV</code> and my <code>post()</code> method has this:</p>
  
  <pre><code>def post(self, request, **kwargs):
  
      ....
  
      form1 = Form1(request.POST, instance=Model1.objects.filter(some_filtering...)
      form2 = Form2(request.POST, instance=Model2.objects.filter(some_filtering...)
      form3 = Form3(request.POST, instance=Model3.objects.filter(some_filtering...)
      form4 = Form4(request.POST, instance=Model4.objects.filter(some_filtering...)
  
  
      # this is the code I want to know
      if POST request is triggered by form1...
  
          # do something....          
  
          return super().post(request, **kwargs)
  
  
      return super().post(request, **kwargs)
  </code></pre>
  
  <p>How can I detect which form triggered POST request?</p>