Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing the benchmark

  • Loading branch information...
commit 30550bbff161ad41b823ed9767f0722fb5e4f23f 1 parent df26c54
@coleifer authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 bench/peewee_bench/models.py
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.