comparison gpp/forums/models.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 9d3bd7304050
children 9e42e6618168
comparison
equal deleted inserted replaced
528:311c926dd218 529:7388cdf61b25
196 196
197 @models.permalink 197 @models.permalink
198 def get_absolute_url(self): 198 def get_absolute_url(self):
199 return ('forums-topic_index', [self.pk]) 199 return ('forums-topic_index', [self.pk])
200 200
201 @models.permalink
202 def get_latest_post_url(self):
203 return ('forums-topic_latest', [self.pk])
204
201 def post_count_update(self): 205 def post_count_update(self):
202 """ 206 """
203 Call this function to notify the topic instance that its post count 207 Call this function to notify the topic instance that its post count
204 has changed. 208 has changed.
205 """ 209 """