

@classmethod
def select(cls, *selection):
    query = SelectQuery(cls, *selection)
    if cls._meta.order_by:
        query = query.order_by(*cls._meta.order_by)
    return cls

dataset/ETHPy150Open coleifer/peewee/peewee.py Model.select/VarMisuse@51/59 `query`->`cls`