diff options
author | Dan McGee <dan@archlinux.org> | 2012-12-28 09:22:23 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-12-28 14:48:29 -0600 |
commit | 2ff967c3d9433361b1f086c326f3a473f10373e3 (patch) | |
tree | 4c657663af832757559629e036718f97c323bfda /todolists/models.py | |
parent | c8ece67cec9c421ac0c711554edd34f022623b45 (diff) |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/todolists/models.py b/todolists/models.py index c38c564e..d19ad92d 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''' |