Example #1
0
 def __unicode__(self):
     if self.title:
         return unicode(self.title)
     return truncate(unicode(self.body), 10)
Example #2
0
 def __unicode__(self):
     return truncate(unicode(self.body), 10)
Example #3
0
 def __str__(self):
     return truncate(str(self.body), 10)
Example #4
0
 def truncate_response(obj):
     return truncate(obj.response, 50)
Example #5
0
 def __unicode__(self):
     return truncate(six.text_type(self.body), 10)
Example #6
0
 def __unicode__(self):
     return truncate(unicode(self.body), 10)
Example #7
0
 def truncate_response(obj):
     return truncate(obj.response, 50)
Example #8
0
 def __unicode__(self):
     if self.title:
         return unicode(self.title)
     return truncate(unicode(self.body), 10)
Example #9
0
 def __str__(self):
     return truncate(six.text_type(self.body), 10)
Example #10
0
 def __str__(self):
     return truncate(six.text_type(self.body), 10)