Mercurial > public > sg101
diff gpp/forums/models.py @ 91:62af8cd8f57b
Forums: added support for Post get_absolute_url()
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 13 Sep 2009 04:05:37 +0000 |
parents | 5b4c812b448e |
children | 93d9e74a471e |
line wrap: on
line diff
--- a/gpp/forums/models.py Sun Sep 13 00:21:54 2009 +0000 +++ b/gpp/forums/models.py Sun Sep 13 04:05:37 2009 +0000 @@ -121,6 +121,10 @@ class Meta: ordering = ('creation_date', ) + @models.permalink + def get_absolute_url(self): + return ('forums-goto_post', [self.pk]) + def summary(self): LIMIT = 50 if len(self.body) < LIMIT: