summaryrefslogtreecommitdiffstats
path: root/todolists/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-12-28 17:06:32 +0100
committerDan McGee <dan@archlinux.org>2012-12-28 21:48:29 +0100
commit0c94cc4465530866da7b6437975a287aa7f063a8 (patch)
treebc6792406601fc7d875059fdf1bfdfdbbfec0b9d /todolists/models.py
parent1dc6b867f48786ab6973d6832f386c9d771b58e0 (diff)
downloadarchweb-0c94cc4465530866da7b6437975a287aa7f063a8.tar.gz
archweb-0c94cc4465530866da7b6437975a287aa7f063a8.tar.xz
Use todolist slugs for all URLs
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 a6dda2a..76af0d3 100644
--- a/todolists/models.py
+++ b/todolists/models.py
@@ -35,7 +35,7 @@ class Todolist(models.Model):
return self.name
def get_absolute_url(self):
- return '/todo/%i/' % self.old_id
+ return '/todo/%s/' % self.slug
def get_full_url(self, proto='https'):
'''get a URL suitable for things like email including the domain'''