title: django annotate not working properly
body: <p>I have two models <code>SaleItem</code> and <code>Product</code>. Here i want to get the count of the <code>products</code> in the <code>SaleItem</code> table . I used annotate but not getting the desired result</p>
  
  <pre><code>class SaleItem(models.Model):
      product = models.ForeignKey(Product, related_name="sale_products")
      quantity = models.PositiveIntegerField()
  
  
  class Product(models.Model):
      name = models.CharField(max_length=128)
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>SaleItem.objects.values("product__name").annotate(count=Count("product__name"))
  </code></pre>
  
  <p>when i tried this in shell. i am getting all the products with count 1 </p>
  
  <pre><code>&lt;QuerySet [{'count': 1, 'product__name': u'Rice'}, {'count': 1, 'product__name': u'Rice'}, {'count': 1, 'product__name': u'Mango'}, {'count': 1, 'product__name': u'Mango'}, {'count': 1, 'product__name': u'Mango'}, {'count': 1, 'product__name': u'Apple'}, {'count': 1, 'product__name': u'Apple'}, {'count': 1, 'product__name': u'Apple'}, {'count': 1, 'product__name': u'Apple'}, {'count': 1, 'product__name': u'Grape'}, {'count': 1, 'product__name': u'Grape'}, {'count': 1, 'product__name': u'Grape'}, {'count': 1, 'product__name': u'Grape'}, {'count': 1, 'product__name': u'Grape'}, {'count': 1, 'product__name': u'Grape'}, {'count': 1, 'product__name': u'Grape'}, {'count': 1, 'product__name': u'Grape'}]&gt;
  </code></pre>
  
  <p>here i want the totalcount of the each Product in the SaleItem table. How can i do that. Somebody please help me.</p>