title: Accessing and performing operations on queryset data in Django
body: <p>If I get a queryset object like below</p>
  
  <pre><code>review_object = Review.objects.filter(property_id=prop.values('id')).annotate(total=Sum('star_rating'))
  </code></pre>
  
  <p>how do I access this object to perform further operations? To expand, I need to be able to sum the 'star_rating' field per property_id. I've tried this:</p>
  
  <pre><code>count_stars = 0
      for ro in review_object:
          count_stars += ro.star_rating
  </code></pre>
  
  <p>But this displays all stars for all properties.</p>
  
  <p>I've tried the aggregate function but this returns a dictionary object which does not meet my needs when rendering in the template. I can provide more info if required.</p>
  
  <p>Any suggestions?</p>