title: How to select distinct years from DateTime with Peewee
body: <p>I've created a MySQL table with these fields:</p>
  
  <pre><code>id - int - auto_increment
  dt - DateTime 
  desc - VARCHAR 255
  </code></pre>
  
  <p>Now I would like know know how to select only the years from this table with Peewee in Python. Equal years should be removed.</p>
  
  <p>In SQL I would simply do <code>SELECT DISTINCT YEAR(dt) AS yr from data;</code> to get the desired result.</p>
  
  <p>I'm aware of the <code>db.execute_sql</code> method to execute a raw SQL-query. I wonder however if there is a cleaner way.</p>
  
  <p>Thanks and best regards.</p>