summaryrefslogtreecommitdiff
path: root/tbc
diff options
context:
space:
mode:
authorhardythe12015-09-09 11:43:15 +0530
committerhardythe12015-09-09 11:43:15 +0530
commit2c58497010b8a2d505cb4ff976ad742a7773abf9 (patch)
tree7eb97c9e09016f01c19df4377ab1227c32af156b /tbc
parent55038a2266373139283ca253e122ecb32291e436 (diff)
downloadPython-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.py2
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)