summaryrefslogtreecommitdiff
path: root/tbc/models.py
diff options
context:
space:
mode:
authorTrupti Rajesh Kini2016-10-04 16:48:34 +0530
committerGitHub2016-10-04 16:48:34 +0530
commit12f75a677c0576e410b8cdef4ac6f71cef37dd91 (patch)
tree0a9364c4c3c8b38182a2bfda3b97f859c084affe /tbc/models.py
parentc5c3c7b6c4794d960ead6137d251cd9b8f423aa4 (diff)
parent15ab83ff1b57dab493ac366d866f3e26765599eb (diff)
downloadPython-TBC-Interface-12f75a677c0576e410b8cdef4ac6f71cef37dd91.tar.gz
Python-TBC-Interface-12f75a677c0576e410b8cdef4ac6f71cef37dd91.tar.bz2
Python-TBC-Interface-12f75a677c0576e410b8cdef4ac6f71cef37dd91.zip
Merge pull request #39 from FOSSEE/upgrade-django-1.9
Upgraded to django 1.9
Diffstat (limited to 'tbc/models.py')
-rw-r--r--tbc/models.py6
1 files changed, 3 insertions, 3 deletions
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)