From ab992e3da65de1ad9ab18a6496007dc3a3fc6295 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Tue, 8 Jul 2014 13:27:12 +0530 Subject: adding changes to link the screen shots to respective chapters --- tbc/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tbc/models.py') 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) -- cgit