summaryrefslogtreecommitdiffstats
path: root/todolists/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-12-28 16:22:23 +0100
committerDan McGee <dan@archlinux.org>2012-12-28 21:48:29 +0100
commit2ff967c3d9433361b1f086c326f3a473f10373e3 (patch)
tree4c657663af832757559629e036718f97c323bfda /todolists/models.py
parentc8ece67cec9c421ac0c711554edd34f022623b45 (diff)
downloadarchweb-2ff967c3d9433361b1f086c326f3a473f10373e3.tar.gz
archweb-2ff967c3d9433361b1f086c326f3a473f10373e3.tar.xz
Todolist URLs map to old_id now, not id
This is a short-term fix before adding a slug field to todo lists as we did to news a while back. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists/models.py')
-rw-r--r--todolists/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/todolists/models.py b/todolists/models.py
index c38c564..d19ad92 100644
--- a/todolists/models.py
+++ b/todolists/models.py
@@ -34,7 +34,7 @@ class Todolist(models.Model):
return self.name
def get_absolute_url(self):
- return '/todo/%i/' % self.id
+ return '/todo/%i/' % self.old_id
def get_full_url(self, proto='https'):
'''get a URL suitable for things like email including the domain'''