diff options
author | hardythe1 | 2014-07-08 15:30:17 +0530 |
---|---|---|
committer | hardythe1 | 2014-07-08 15:30:17 +0530 |
commit | 2415d9e6616b2fbf3e2cf74a970b82e59868f18d (patch) | |
tree | ab22224925725d243d3f2ca52c85e0d0d0b88103 /tbc/models.py | |
parent | 0bfc7f75afc21c995c066ac8f4257d93c6a68473 (diff) | |
parent | ab992e3da65de1ad9ab18a6496007dc3a3fc6295 (diff) | |
download | Python-TBC-Interface-2415d9e6616b2fbf3e2cf74a970b82e59868f18d.tar.gz Python-TBC-Interface-2415d9e6616b2fbf3e2cf74a970b82e59868f18d.tar.bz2 Python-TBC-Interface-2415d9e6616b2fbf3e2cf74a970b82e59868f18d.zip |
Merge branch 'master' of https://github.com/FOSSEE/Python-TBC-Interface
Diffstat (limited to 'tbc/models.py')
-rw-r--r-- | tbc/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tbc/models.py b/tbc/models.py index 76c9dc6..56ea268 100644 --- a/tbc/models.py +++ b/tbc/models.py @@ -101,6 +101,7 @@ class ScreenShots(models.Model): caption = models.CharField(max_length=128) image = models.FileField(upload_to=get_image_dir) book = models.ForeignKey(Book) + chapter = models.ForeignKey(Chapters) def __unicode__(self): name = self.caption or 'ScreenShots' return '%s'%(name) |