comparison 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
comparison
equal deleted inserted replaced
528:311c926dd218 529:7388cdf61b25
149 149
150 topic_content = { 150 topic_content = {
151 'title': post.topic.name, 151 'title': post.topic.name,
152 'author': post.user.username, 152 'author': post.user.username,
153 'date': topic_score, 153 'date': topic_score,
154 'url': post.get_absolute_url() 154 'url': post.topic.get_latest_post_url()
155 } 155 }
156 json = simplejson.dumps(topic_content) 156 json = simplejson.dumps(topic_content)
157 key = UPDATED_TOPIC_KEY % topic_id 157 key = UPDATED_TOPIC_KEY % topic_id
158 158
159 pipeline = conn.pipeline() 159 pipeline = conn.pipeline()