title: sum with condition in django query
body: <p>We want to wrtie this query in django please</p>
  <pre><code>SELECT sum(recommended='1') AS YES,sum(recommended='0') AS NO FROM `rating` WHERE applied_users = 32500 
  </code></pre>
  <p>we have no idea how to use in sum &quot;= 1&quot;</p>
  <pre><code>Rating.objects.filter(applied_id = 32500).aggregate(YES=Sum('recommended'))
  </code></pre>