{% if choice.detail_url %}
<span class="div" data-value="{{choice.pk}}" style="cursor:pointer;font-size:14px;" onclick="window.location.href='{{choice.detail_url}}'">
{{ choice }}
</span>
{% else %}
<span class="div" data-value="{{choice.pk}}" style="cursor:pointer;font-size:14px;">
{{ choice }}
</span>
{% endif %}