{% if record.label|slice:":3" in "http" %} {{ record.label }} {% else %} {{ record.label }} {% endif %}