##// END OF EJS Templates
Small thread code refactoring
neko259 -
r1026:9aef5e21 default
parent child Browse files
Show More
@@ -88,7 +88,7 b' class Thread(models.Model):'
88 88 Checks if the thread can be bumped by replying to it.
89 89 """
90 90
91 return self.bumpable
91 return self.bumpable and not self.archived
92 92
93 93 def get_last_replies(self):
94 94 """
@@ -161,9 +161,6 b' class Thread(models.Model):'
161 161
162 162 return self.get_opening_post(only_id=True).id
163 163
164 def __unicode__(self):
165 return str(self.id)
166
167 164 def get_pub_time(self):
168 165 """
169 166 Gets opening post's pub time because thread does not have its own one.
General Comments 0
You need to be logged in to leave comments. Login now