@register.filter
def host_uuid_link(uuid):
  """Returns an HTML anchor tag linking to the report for the given uuid."""
  return mark_safe(
      '<a href="/admin/host/%s/" class="uuidhover">%s</a>' % (uuid, uuid))
dataset/ETHPy150Open google/simian/src/simian/mac/admin/custom_filters.py/host_uuid_link/original