Can delete active and pending tasks.

this should be, type="hidden" instead of hidden="True"
also put the value in quotes like value="{{ task.id }}"