fixed assign_task method to display a not_allowed message if task status not in OP WR.
fixed assign_task method to display a not_allowed message if task status not in OP WR.

madhusudancs/pytask,madhusudancs/pytask,madhusudancs/pytask