def object_link(self, obj):
        if obj.action_flag == DELETION:
            link = escape(obj.object_repr)
        elif obj.content_type is None:
            link = escape(obj.object_repr)
        else:
            ct = obj.content_type
            link = u'<a href="%s">%s</a>' % (
                reverse((ct.app_label, ct.model) % 'admin:%s_%s_change', args=[obj.object_id]),
                escape(obj.object_repr),
            )
        return link
dataset/ETHPy150Open CenterForOpenScience/osf.io/admin/common_auth/admin.py/LogEntryAdmin.object_link/swapped operands of `%`