summaryrefslogtreecommitdiff
path: root/tbc/models.py
diff options
context:
space:
mode:
authorhardythe12015-05-26 18:39:19 +0530
committerhardythe12015-05-26 18:39:19 +0530
commit59d3c4b1cf183a2772c7337fbb27543aa4046e01 (patch)
treebb612d1a41b37ae571ab6128b44af1e89c5046a2 /tbc/models.py
parent064f18d507bc225ef0941344a66f99b489a05f8c (diff)
downloadPython-TBC-Interface-59d3c4b1cf183a2772c7337fbb27543aa4046e01.tar.gz
Python-TBC-Interface-59d3c4b1cf183a2772c7337fbb27543aa4046e01.tar.bz2
Python-TBC-Interface-59d3c4b1cf183a2772c7337fbb27543aa4046e01.zip
Added sitemap
Diffstat (limited to 'tbc/models.py')
-rw-r--r--tbc/models.py3
1 files changed, 3 insertions, 0 deletions
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):