title: Referencing multiple submit buttons in django
body: <p>How would I call on the following multiple submit forms -- </p>
  
  <pre><code>&lt;form action="/" method="post"&gt;
      {% csrf_token %}
  
      &lt;input type="text" name="{{ email.id }}" value=" {{email}}"&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="submit" value="Edit"&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="submit" value="Delete"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I want to do something like this --</p>
  
  <pre><code>if value = edit:
      do this
  
  if value = delete:
      do this
  </code></pre>
  
  <p>How would I code this in the views.py file?</p>