title: python peewee - how to use distinct
body: <p>I'm trying to get this code working with peewee:</p>
  
  <pre><code>distinct_list = QSales.select(QSales.account, QSales.tax_code).distinct().where(QSales.trans_num == 3717)
  print distinct_list
  </code></pre>
  
  <p>but the print command result is:</p>
  
  <pre><code>&lt;class '__main__.QSales'&gt; SELECT DISTINCT t1.`Account`, t1.`Tax_Code` FROM `q_sales` AS t1 WHERE (t1.`Trans_#` = %s) [3717]
  </code></pre>
  
  <p>running the above select statement in MySQL editor (copy the print result to the editor) returns correct result.</p>
  
  <p>I also tried:</p>
  
  <pre><code>distinct_list = QSales.select(fn.Distinct(QSales.account, QSales.tax_code)).where(QSales.trans_num == 3717)
  </code></pre>
  
  <p>but got the same result</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thank you.</p>