title: How to trigger an events by django when html buttons are cliked
body: <p>here is the html file form </p>
  
  <pre><code>&lt;form action ="fetch" method="post"&gt;
     &lt;input type="text" name="t1"&gt;
      &lt;input type="text" name="t2"&gt;
      &lt;input type="submit" name="b1"&gt;
      &lt;input type="submit" name="b2"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>now when we click on submit button its properly calls the fetch function 
  but when i click on cancel button same fetch function is called so i don't want that to happen i want to trigger different event/function when user click's on cancel button  </p>
  
  <p>here is the html file form </p>
  
  <pre><code>&lt;form action ="fetch" method="post"&gt;
     &lt;input type="text" name="t1"&gt;
      &lt;input type="text" name="t2"&gt;
      &lt;input type="submit" name="b1"&gt;
      &lt;input type="submit" name="b2"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>my views.py </p>
  
  <pre><code>def fetch(request):
  
      a = request.GET.get("t1")
      b = request.GET.get("t2")
     return render(request,'student.html')
  </code></pre>