<option value="">---------</option>
{% for task in tasks %}
<option value="{{ task.pk }}">{{ task.name }}</option>
{% endfor %}