diff options
-rw-r--r-- | tbc/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tbc/models.py b/tbc/models.py index f2000a3..4032125 100644 --- a/tbc/models.py +++ b/tbc/models.py @@ -100,7 +100,7 @@ class Book(models.Model): isbn = models.CharField(max_length=50) edition = models.CharField(max_length=15) year_of_pub = models.CharField(max_length=4) - no_chapters = models.IntegerField(max_length=2) + no_chapters = models.IntegerField(max_length=2, default=0, blank=True) contributor = models.ForeignKey(Profile) reviewer = models.ForeignKey(Reviewer) approved = models.BooleanField(default=False) |