Since this depends on the existence of the TaskAttempt, you can remove the TasMustBePublishedMixin from this and the other views.