# HG changeset patch # User Nishanth Amuluru # Date 1294233768 -19800 # Node ID 307f699e6102fe5451d98ff337e975bf3f92e115 # Parent ab7c24ab8d930d61006eca22463229280ece99b2 Now browse tasks page does not display textbooks diff -r ab7c24ab8d93 -r 307f699e6102 taskapp/views/task.py --- a/taskapp/views/task.py Wed Jan 05 18:50:20 2011 +0530 +++ b/taskapp/views/task.py Wed Jan 05 18:52:48 2011 +0530 @@ -18,6 +18,8 @@ user = get_user(request.user) if request.user.is_authenticated() else request.user task_list = Task.objects.exclude(status="UP").exclude(status="DL").order_by('published_datetime').reverse() + + task_list = task_list.exclude(tags_field__icontains="textbook") context = {'user':user, 'task_list':task_list, @@ -30,7 +32,7 @@ user = get_user(request.user) if request.user.is_authenticated() else request.user task_list = Task.objects.exclude(status="UP").exclude(status="DL").order_by('published_datetime').reverse() - textbooks = task_list.filter(tags_field__icontains="textbook") + task_list = task_list.filter(tags_field__icontains="textbook") context = {'user':user, 'task_list':task_list,