Skip to content
This repository
Browse code

Fixing the benchmark

  • Loading branch information...
commit 30550bbff161ad41b823ed9767f0722fb5e4f23f 1 parent df26c54
Charles Leifer authored July 16, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  bench/peewee_bench/models.py
6  bench/peewee_bench/models.py
@@ -5,7 +5,7 @@
5 5
 
6 6
 class User(peewee.Model):
7 7
     username = peewee.CharField()
8  
-    active = peewee.BooleanField()
  8
+    active = peewee.BooleanField(default=False)
9 9
 
10 10
     class Meta:
11 11
         database = test_db
@@ -22,8 +22,8 @@ class Meta:
22 22
 class Entry(peewee.Model):
23 23
     blog = peewee.ForeignKeyField(Blog)
24 24
     title = peewee.CharField()
25  
-    content = peewee.TextField()
26  
-    pub_date = peewee.DateTimeField()
  25
+    content = peewee.TextField(default='')
  26
+    pub_date = peewee.DateTimeField(null=True)
27 27
 
28 28
     class Meta:
29 29
         database = test_db

0 notes on commit 30550bb

Please sign in to comment.
Something went wrong with that request. Please try again.