Change edit_task queryset to .get for one task, pass instance to TaskForm to pre-fill editable fields.