title: How to get columns/fields with peewee query?
body: <p>For a model </p>
  
  <pre><code>class User(db.Model, BaseUser):
      name = CharField()
      phone = CharField()
      age = IntegerField()
      points = IntegerField()
  </code></pre>
  
  <p>and a list of fields, <code>lst = ['phone', 'name', 'points']</code></p>
  
  <p>Is there a way to get your query to return the fields in <code>lst</code>?</p>
  
  <p>I can't find an example in the <a href="https://ag-peewee.readthedocs.org/en/latest/peewee/querying.html" rel="noreferrer">docs</a>, but it seems like Django's ORM has something like <code>...get().values(lst)</code>.</p>
  
  <p>I tried passing the list as an argument to <code>User.select()</code>, but get</p>
  
  <pre><code>TypeError: issubclass() arg 1 must be a class
  </code></pre>
  
  <p>I guess I could do something like <code>[getattr(obj, field) for field in lst]</code> with a resulting object, but seems there should be a better way?</p>
  
  <p><strong>Update</strong>: The link to <code>values</code> in Django's docs is <a href="https://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.query.QuerySet.values" rel="noreferrer">here</a>.</p>