title: How to query as GROUP BY in django?
body: <p>I query a model:</p>
  
  <pre><code>Members.objects.all()
  </code></pre>
  
  <p>And it returns:</p>
  
  <pre><code>Eric, Salesman, X-Shop
  Freddie, Manager, X2-Shop
  Teddy, Salesman, X2-Shop
  Sean, Manager, X2-Shop
  </code></pre>
  
  <p>What I want is to know the best Django way to fire
  a <code>group_by</code> query to my database, like:</p>
  
  <pre><code>Members.objects.all().group_by('designation')
  </code></pre>
  
  <p>Which doesn't work, of course.
  I know we can do some tricks on <code>django/db/models/query.py</code>, but I am just curious to know how to do it without patching.</p>