

def _prune_fields(self, field_dict, only):
    new_data = {
        
    }
    for field in only:
        if (field.name in field_dict):
            new_data[field.name] = field_dict[field.name]
    return new_data

dataset/ETHPy150Open coleifer/peewee/peewee.py Model._prune_fields/original