title: Django: Passing object from template to views
body: <p>I want to use the same template to view information about each of my database objects. I would like to be able to click on each element in the list and have it link me to a page with info about it. I'm thinking there's an easier way than making a view for each unique object.</p>
  
  <p>I'm listing all of my database objects on my list.html like this:</p>
  
  <pre><code>{% for instance in object_info %}
      &lt;li&gt;&lt;a href="object"&gt;{{ instance.name }}&lt;/a&gt;&lt;/li&gt;
  {% endfor %}
  </code></pre>
  
  <p>My views.py has this view:</p>
  
  <pre><code>def object_view(request):
      data = Object.objects.filter(name="")
      context={
      'object_info':data
      }
      return render(request, "object.html", context)
  </code></pre>
  
  <p>Can I pass each <code>{{ instance.name }}</code> to the view and use that as a variable for my filter?</p>