def __unicode__(self):
        to_from = (self.direction == INCOMING) and "from" or "to"
        return "Call %s %s" % (to_from, self.phone_number)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/sms/models.py/CallLog.__unicode__/original