def format_content(self, broadcast):
        if broadcast.method == METHOD_SMS_SURVEY:
            content = get_form_name(broadcast.events[0].form_unique_id)
        else:
            message = broadcast.events[0].message[broadcast.default_lang]
            if len(message) > 50:
                content = '"%s..."' % message[:47]
            else:
                content = '"%s"' % message
        return content
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/reminders/views.py/BroadcastListView.format_content/original