def event_object_link(entry):
    return mark_safe('<a href="%(url)s">%(label)s</a>' % {
        'url': entry.target.get_absolute_url() if entry.target else '#',
        'label': entry.target}
    )
dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/events/widgets.py/event_object_link/original