title: Django views and forms submit button update database
body: <p>This is the form that the submit button is in.     </p>
  
  <pre><code>&lt;form&gt;
            &lt;button type="submit" name="subscribe" class="btn btn-primary pull-right"&gt;Subscribe&lt;/button&gt;&lt;/h5&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>And I have this code in my view:</p>
  
  <pre><code>def tour_sub(request):
      tour = Tour.objects.filter(id=1)
      if 'subscribe' in request.POST:
          tour.subscribers.add(user) 
          tour.save()
  </code></pre>
  
  <p>When the subscribe button is clicked I just want to update the record and insert that in the database. But nothing happens when I click the Subscribe button. I am new in django and I don't know where the problem is.</p>