diff options
author | Dan McGee <dan@archlinux.org> | 2012-12-28 10:06:32 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-12-28 14:48:29 -0600 |
commit | 0c94cc4465530866da7b6437975a287aa7f063a8 (patch) | |
tree | bc6792406601fc7d875059fdf1bfdfdbbfec0b9d /todolists/models.py | |
parent | 1dc6b867f48786ab6973d6832f386c9d771b58e0 (diff) |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/todolists/models.py b/todolists/models.py index a6dda2ab..76af0d35 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''' |