fixed assign_task method to display a not_allowed message if task status not in OP WR.
{% extends 'base.html' %}
{% block content %}
{% if message %}
{{message}}<br />
{% endif %}
{% if redirect_url %}
<a href="{{redirect_url}}">click here</a> to return to {{url_desc}}
{% else %}
<a href="/">click here</a> to return to Homepage
{% endif %}
{% endblock %}