diff --git a/bench/peewee_bench/models.py b/bench/peewee_bench/models.py index 2ce0a6733..2898cf316 100644 --- a/bench/peewee_bench/models.py +++ b/bench/peewee_bench/models.py @@ -5,7 +5,7 @@ class User(peewee.Model): username = peewee.CharField() - active = peewee.BooleanField() + active = peewee.BooleanField(default=False) class Meta: database = test_db @@ -22,8 +22,8 @@ class Meta: class Entry(peewee.Model): blog = peewee.ForeignKeyField(Blog) title = peewee.CharField() - content = peewee.TextField() - pub_date = peewee.DateTimeField() + content = peewee.TextField(default='') + pub_date = peewee.DateTimeField(null=True) class Meta: database = test_db