Exemple #1
0
 def __unicode__(self):
     name = self.author.get_full_name() or self.author.username
     return u"%s on %s: %s" % (name, date_format(self.timestamp),
                               truncate(self.message, 30))
Exemple #2
0
 def __unicode__(self):
     return truncate(self.title, 75)