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