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