Do not create abstract models
Behoston opened this issue · comments
Mateusz Legięcki commented
I have so-called base model for easy db linking:
class Model(peewee.Model):
class Meta:
abstract = True
database = db
Creating migrations produces:
@migrator.create_model
class Model(pw.Model):
id = pw.AutoField()
class Meta:
table_name = "model"
Kirill Klenov commented
Peewee Model Metadata doesn't have such attribute as 'abstract'. You may use migrations ignore
option.
TheAl_T commented
Sorry for reopening this, but where exactly do I pass the ignore
option and what is the format? I can not find anything in the documentation (the readme)
Thanks