def get_meta_fields(model):
    try:
        fields = model._meta.sorted_fields
    except __HOLE__:
        fields = model._meta.get_fields()
    return fields
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/contrib/peewee/tools.py/get_meta_fields