

def __getattr__(self, attr):
    model_attr = getattr(self.model_class, attr)
    if isinstance(model_attr, Field):
        return FieldProxy(self, model_attr)
    return model_attr

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