title: How to compare "peewee.DateField" with "datatime.date"?
body: <p>I wrote the below program to fetch some rows of my database that contain information about the users whom born after <code>22-Jan-1963</code>:</p>
  
  <pre><code>import datetime as dt
  import peewee as pw
  db = pw.SqliteDatabase('people.db')
  
  class Person(pw.Model):
      name = pw.CharField()
      birthday = pw.DateField(formats=['%d-%b-%Y'])
  
      class Meta:
          database = db # This model uses the "people.db" database.
  
  db.create_tables([Person])
  
  bob = Person(name = 'Bob', birthday = '21-Jan-1960')
  james = Person(name = 'James', birthday = '22-Jan-1965')
  steve = Person(name = 'Steve', birthday = '20-Jan-1970')
  alex = Person(name = 'Alex', birthday = '18-Jan-1975')
  bob.save()
  james.save()
  steve.save()
  alex.save()
  
  for item in Person.select().where(Person.birthday &gt; dt.date(1963,1,22)):
      print item.name,item.birthday, item.birthday &gt; dt.date(1963,1,22)
  </code></pre>
  
  <p>But when I run this, output is not what I have expected (I expect <em>James, Steve and Alex</em> in the output):</p>
  
  <pre><code>&gt;&gt;&gt; ================================ RESTART ================================
  &gt;&gt;&gt; 
  Bob 1960-01-21 False
  James 1965-01-22 True
  Steve 1970-01-20 True
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>Well, I replaced <code>dt.date(1963,1,22)</code> with <code>"22-Jan-1963"</code> in the <code>where()</code> method, and now the result is:</p>
  
  <pre><code>&gt;&gt;&gt; ================================ RESTART ================================
  &gt;&gt;&gt; 
  James 1965-01-22 True
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>As you see above, it is not correct still. </p>
  
  <p>What shall I do?</p>