diff gpp/forums/latest.py @ 529:7388cdf61b25

For #241, add a URL to view the last post in a forum topic.
author Brian Neal <bgneal@gmail.com>
date Thu, 22 Dec 2011 02:10:27 +0000
parents d9cf6f60b5a5
children
line wrap: on
line diff
--- a/gpp/forums/latest.py	Wed Dec 21 01:25:10 2011 +0000
+++ b/gpp/forums/latest.py	Thu Dec 22 02:10:27 2011 +0000
@@ -151,7 +151,7 @@
         'title': post.topic.name,
         'author': post.user.username,
         'date': topic_score,
-        'url': post.get_absolute_url()
+        'url': post.topic.get_latest_post_url()
     }
     json = simplejson.dumps(topic_content)
     key = UPDATED_TOPIC_KEY % topic_id