Show More
@@ -222,8 +222,8 b' class Post(models.Model):' | |||||
222 | last_edit_time = models.DateTimeField() |
|
222 | last_edit_time = models.DateTimeField() | |
223 |
|
223 | |||
224 | def __unicode__(self): |
|
224 | def __unicode__(self): | |
225 |
return '#' + str(self.id) + ' ' + self.title + ' (' + |
|
225 | return '#' + str(self.id) + ' ' + self.title + ' (' + \ | |
226 | ')' |
|
226 | self.text.raw[:50] + ')' | |
227 |
|
227 | |||
228 | def _get_replies(self): |
|
228 | def _get_replies(self): | |
229 | return Post.objects.filter(parent=self.id) |
|
229 | return Post.objects.filter(parent=self.id) |
General Comments 0
You need to be logged in to leave comments.
Login now