title: Django reverse relations
body: <p>I've managed to get my around Django for the most part but I'm still doing a pattern which I'm sure there exists a better way of doing but reading related questions I can't find a solution that works for me. It's a simple reverse relationship lookup which is then looped through in the template:</p>
  
  <pre><code>items_a = ItemA.objects.filter(foo='bar')
  for item in items_a:
      items_a.items_b = ItemB.objects.filter(item_a=item_a)
  </code></pre>
  
  <p>I then use this so loop though in the template</p>
  
  <p>Item A 1</p>
  
  <ul>
  <li>Item B 1</li>
  <li>Item B 2</li>
  </ul>
  
  <p>Item A 2</p>
  
  <ul>
  <li>Item B 3</li>
  <li>Item B 4</li>
  </ul>
  
  <p>Help!</p>