##// END OF EJS Templates
Made post unicode string value shorter for the admin interface.
Pavel Ryapolov -
r105:86b80a17 default
parent child Browse files
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 + ' (' + self.text.raw + \
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