title: Sending POST data from inside a Django template 'for loop'
body: <p>With this HTML:</p>
  
  <pre><code>...
  
      {% for thing in things %}
          &lt;form method="post"&gt;
               {% csrf_token %}
               {{ thing.name }}
               {{ form.value }}
               &lt;input type="submit" value="Submit" /&gt;
          &lt;/form&gt;
      {% endfor %}
  ...
  </code></pre>
  
  <p>My website lists multiple 'things' from my database, so there can be many forms generated on the one page. How can I somehow determine in my views.py, which 'thing's' form is being submitted?</p>
  
  <p><strong>More elaboration:</strong></p>
  
  <p>Imagine you have a page of objects listed one after the other, and each object has a like button associated with it, that adds a like to the object it is next to. That's essentially what I'm trying to do here.</p>
  
  <p>The problem is, I have a form that can process the like, but how do I take that like and add it to the object that it's displayed next to on the page? (by the aforementioned 'for loop')</p>
  
  <hr>
  
  <p>I'm completely confused on how to go about this, am I looking at the problem the wrong way, or is there a standard idiom around this problem that I don't know about?</p>
  
  <p>Thank you :)</p>