title: Convert SQL Query to ORM Query Django
body: <p>Here is SQL Query: </p>
  
  <pre><code>SELECT id, ip_src, ip_dst, src_port, ip_proto, sum(bytes) as Traffic
  FROM table GROUP BY ip_src, ip_dst, ip_proto 
  ORDER BY 6 DESC limit 10;
  </code></pre>
  
  <p>I need to convert it in ORM Query. I know that there are raw sql queries in Django, but I need ORM in order to integrate this query with Chartit addon(Highcharts), which understands only querysets and models.</p>
  
  <p>Got this, but it's not correct</p>
  
  <pre><code>Flow.objects.values('ip_src', 'ip_dst', 'ip_proto',
   'bytes').annotate(traffic=Sum('bytes')).order_by('-traffic')[:10]
  </code></pre>
  
  <p>Any help is appreciated </p>