comparison gpp/forums/models.py @ 82:bc3978f023c2

Forums: started the ability to display topics inside a forum.
author Brian Neal <bgneal@gmail.com>
date Sun, 23 Aug 2009 04:04:29 +0000
parents e356ea79a7a2
children 5b4c812b448e
comparison
equal deleted inserted replaced
81:e356ea79a7a2 82:bc3978f023c2
79 ordering = ('-sticky', '-update_date', ) 79 ordering = ('-sticky', '-update_date', )
80 80
81 def __unicode__(self): 81 def __unicode__(self):
82 return self.name 82 return self.name
83 83
84 @models.permalink
85 def get_absolute_url(self):
86 return ('forums-topic_index', [self.pk])
87
84 def post_count_update(self): 88 def post_count_update(self):
85 """ 89 """
86 Call this function to notify the topic instance that its post count 90 Call this function to notify the topic instance that its post count
87 has changed. 91 has changed.
88 """ 92 """