def object_link(self, comment):
        try:
            object = comment.content_object
        except AttributeError:
            return ''

        if sys.version_info[0] >= 3:
            title = str(object)
        else:
            title = unicode(object)

        if object:
            return u'<a href="{0}">{1}</a>'.format(escape(object.get_absolute_url()), escape(title))
        else:
            return u''
dataset/ETHPy150Open edoburu/django-fluent-comments/fluent_comments/admin.py/FluentCommentsAdmin.object_link/original