From 15ab83ff1b57dab493ac366d866f3e26765599eb Mon Sep 17 00:00:00 2001 From: kinitrupti Date: Tue, 4 Oct 2016 12:01:02 +0530 Subject: Upgraded to django 1.9 --- tbc/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tbc/models.py') diff --git a/tbc/models.py b/tbc/models.py index 7deb31c..8cb6c06 100644 --- a/tbc/models.py +++ b/tbc/models.py @@ -82,7 +82,7 @@ class Profile(models.Model): about_proj = models.CharField(max_length=50, choices=ABOUT_PROJ) city = models.CharField(max_length=50, default=None) state = models.CharField(max_length=50, default=None) - pin_code = models.IntegerField(max_length=6, default=None) + pin_code = models.IntegerField(default=None) def __unicode__(self): name = self.user.first_name or 'Profile' return '%s'%(name) @@ -103,7 +103,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, default=0, blank=True) + no_chapters = models.IntegerField(default=0, blank=True) contributor = models.ForeignKey(Profile) reviewer = models.ForeignKey(Reviewer) approved = models.BooleanField(default=False) @@ -144,7 +144,7 @@ class TempBook(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() def __unicode__(self): name = self.title or 'Book' return '%s'%(name) -- cgit