diff options
author | hardythe1 | 2015-09-09 11:43:15 +0530 |
---|---|---|
committer | hardythe1 | 2015-09-09 11:43:15 +0530 |
commit | 2c58497010b8a2d505cb4ff976ad742a7773abf9 (patch) | |
tree | 7eb97c9e09016f01c19df4377ab1227c32af156b /tbc | |
parent | 55038a2266373139283ca253e122ecb32291e436 (diff) | |
download | Python-TBC-Interface-2c58497010b8a2d505cb4ff976ad742a7773abf9.tar.gz Python-TBC-Interface-2c58497010b8a2d505cb4ff976ad742a7773abf9.tar.bz2 Python-TBC-Interface-2c58497010b8a2d505cb4ff976ad742a7773abf9.zip |
default value for no of chapters in AICTE
Diffstat (limited to 'tbc')
-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) |