

def add_to_class(self, model_class, name):
    self._constructor = model_class._meta.database.get_binary_type()
    return super(BlobField, self).add_to_class(model_class, name)

dataset/ETHPy150Open coleifer/peewee/peewee.py BlobField.add_to_class/original