

def select(self, *selection):
    if (not selection):
        selection = self.get_proxy_fields()
    query = SelectQuery(self, *selection)
    if self._meta.order_by:
        query = query.order_by(*self._meta.order_by)
    return query

dataset/ETHPy150Open coleifer/peewee/peewee.py ModelAlias.select/original