summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-07-05 22:20:28 -0500
committerDan McGee <dan@archlinux.org>2010-07-05 22:20:28 -0500
commitcb9c74eff8f7c3469cc5e84477074c138ed555df (patch)
tree75c9e6960f03f2289fe2324eb03557cc3542e5b7 /main
parent41a5d1d5667dd2fe7cde64323f18252e0b94542e (diff)
downloadarchweb-cb9c74eff8f7c3469cc5e84477074c138ed555df.tar.gz
archweb-cb9c74eff8f7c3469cc5e84477074c138ed555df.zip
Add absolute URL method for todo lists
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r--main/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index 208ea1a7..b6922680 100644
--- a/main/models.py
+++ b/main/models.py
@@ -367,6 +367,9 @@ class Todolist(models.Model):
class Meta:
db_table = 'todolists'
+ def get_absolute_url(self):
+ return '/todo/%i/' % self.id
+
class TodolistPkg(models.Model):
id = models.AutoField(primary_key=True)
list = models.ForeignKey('Todolist')