def __unicode__(self): q = str_truncate(self.question.text) if self.text: a = str_truncate(self.text) string = '"{a}" - {q}' else: a = str_truncate(self.choice.text) string = '{a} - {q}' return string.format(a=a, q=q)
def __unicode__(self): return "{choice} - {qn}".format(choice=self.text, qn=str_truncate(self.question.text))
def __unicode__(self): return str_truncate(self.text)