title: How do I perform query filtering in django templates
body: <p>I need to perform a filtered query from within a django template, to get a set of objects equivalent to python code within a view:</p>
  
  <pre><code>queryset = Modelclass.objects.filter(somekey=foo)
  </code></pre>
  
  <p>In my template I would like to do</p>
  
  <pre><code>{% for object in data.somekey_set.FILTER %}
  </code></pre>
  
  <p>but I just can't seem to find out how to write FILTER.</p>