title: Django aggregation and following foreign key relations
body: <p>Models:</p>
  
  <pre><code>class Item(models.Model):
      name = models.CharField(max_length=100)
      # More stuff.
  class Sale(models.Model):
      sale_date = models.DateField(auto_now_add=True)
      item = models.ForeignKey(Item)
      # More stuff.
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>class TodaySales(ListView):
      # Stuff in here.
      def get_queryset(self):
          sales_today = Sale.objects.filter(sale_date=date.today())
          return sales_today.values('item').annotate(Count('item'))
  </code></pre>
  
  <p>I get back something like this:</p>
  
  <pre><code>[{'item': 1, 'item__count': 2}, {'item': 2, 'item__count': 1}]
  </code></pre>
  
  <p>This is nice and all and but what I really want is to be able to get extra information about the item, such as its name, etc. But I can't seem to do this easily since all I get is the item ID, so I can't in my template do, for example, {{ item.name }}.</p>
  
  <p>Is there some good way of doing this?</p>