I have the following peewee model:
class Product(peewee.Model):
key = peewee.IntegerField(unique=True)
name = peewee.CharField(null=False)
is_active = peewee.CharField(null=True)
base_price = peewee.IntegerField(null=True)
I would like to search all Products that contains in its column "name" the word "foo".
- Can it be done with Product.get() ?
- Which is the right syntax to achieve it?
Thanks,