From 59d3c4b1cf183a2772c7337fbb27543aa4046e01 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Tue, 26 May 2015 18:39:19 +0530 Subject: Added sitemap --- tbc/models.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tbc/models.py') diff --git a/tbc/models.py b/tbc/models.py index 74419e4..960683d 100644 --- a/tbc/models.py +++ b/tbc/models.py @@ -104,6 +104,7 @@ class Book(models.Model): def __unicode__(self): name = self.title or 'Book' return '%s'%(name) + class Chapters(models.Model): name = models.CharField(max_length=200) @@ -113,6 +114,8 @@ class Chapters(models.Model): def __unicode__(self): name = self.name or 'Chapter' return '%s'%(name) + def get_absolute_url(self): + return self.notebook class ScreenShots(models.Model): -- cgit