@register.filter
def host_details_link(uri, uuid):
  """Returns a joined URL to host record details page."""
  url = urlparse.urljoin(uri, uuid)
  return mark_safe(url % '<a href="%s" class="host_details">view</a>')
dataset/ETHPy150Open google/simian/src/simian/mac/admin/custom_filters.py/host_details_link/swapped operands of `%`