title: I cant access the form "name" or "value" in request.POST in Django
body: <p>My template contents multiple forms with multiple buttons.</p>
  
  <p>I've read these topics:</p>
  
  <p><a href="https://stackoverflow.com/questions/1395807/proper-way-to-handle-multiple-forms-on-one-page-in-django">Proper way to handle multiple forms on one page in Django</a></p>
  
  <p><a href="https://stackoverflow.com/questions/866272/how-can-i-build-multiple-submit-buttons-django-form">How can I build multiple submit buttons django form?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/10607091/how-can-i-access-the-form-submit-button-value-in-django">How can I access the form submit button value in Django?</a></p>
  
  <p>and I did exactly the same, included "name" and "value" in form's input (tried with button tag too)</p>
  
  <p>but the "name" attribute doesn't exist in POST request. What am i doing wrong?</p>
  
  <p>template:</p>
  
  <pre><code>&lt;div class="container" align="center" style="border: solid 3px red"&gt;
      &lt;h3&gt;Form 1&lt;/h3&gt;
      &lt;form id="form_step_1" method="post" action="{% url 'ajax_order_data' %}" align="center"&gt;
              {% csrf_token %}
              {{ FormStep1 }}
              &lt;button type="submit" name="step_1" value="step_1"&gt;button_step1&lt;/button&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  
  &lt;br&gt;
  
  &lt;div class="container" align="center"  style="border: solid 3px red"&gt;
      &lt;h3&gt;Form 2&lt;/h3&gt;
      &lt;form id="form_step_2" method="post" action="{% url 'ajax_order_data' %}" align="center"&gt;
              {% csrf_token %}
              {{ FormStep2 }}
              &lt;button type="submit" name="step_2" value="step_2"&gt;button_step2&lt;/button&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  
  &lt;script&gt;
      var form_1 = $("#form_step_1");
      var form_2 = $("#form_step_2");
  
      form_1.submit(function(e){
          e.preventDefault();
          var url = $(form_1).attr('action');
          $.ajax({
            type: 'POST',
            url: url,
            data: form_1.serialize(),
            dataType: 'json',
            success: function (data) {smth_1}
          })
      });
  
      form_2.submit(function(e){
          e.preventDefault();
          var url = $(form_2).attr('action');
          $.ajax({
            type: 'POST',
            url: url,
            data: form_2.serialize(),
            dataType: 'json',
            success: function (data) {smth_2}
          })
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>view:</p>
  
  <pre><code>def somefunc(request):
  if request.method == 'POST':
      if 'step_1' in request.POST:
  </code></pre>