def render_message(message):
    return u"""from: %(from)s\nto: %(to)s\nflash: %(flash)s\n%(body)s""" % {
        'from': message.from_phone,
        'to': ", ".join(message.to),
        'flash': message.flash,
        'body': message.body,
    }
dataset/ETHPy150Open stefanfoulis/django-sendsms/sendsms/backends/console.py/render_message/original