diff options
-rw-r--r-- | taskapp/views/task.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/taskapp/views/task.py b/taskapp/views/task.py index 509f89b..93e4722 100644 --- a/taskapp/views/task.py +++ b/taskapp/views/task.py @@ -31,6 +31,9 @@ def view_task(request, tid): user = request.user task = getTask(tid) + + if task.status == "DL": + return show_msg(user, 'This task no longer exists', '/task/browse/','browse the tasks') comments = Comment.objects.filter(task=task) mentors = task.mentors.all() |