Example #1
0
 def text(self, obj):
     return truncate_chars(obj.__unicode__(), 100)
Example #2
0
 def __unicode__(self):
     return truncate_chars(self.text, 30)