diff options
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) |