From 222e45c4e99a6a6b242ddaffe1617d6084d19552 Mon Sep 17 00:00:00 2001 From: Nishanth Amuluru Date: Wed, 5 Jan 2011 18:52:48 +0530 Subject: Now browse tasks page does not display textbooks --- taskapp/views/task.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'taskapp/views') diff --git a/taskapp/views/task.py b/taskapp/views/task.py index 248bf4b..472aeb7 100644 --- a/taskapp/views/task.py +++ b/taskapp/views/task.py @@ -18,6 +18,8 @@ def browse_tasks(request): 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 @@ def show_textbooks(request): 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, -- cgit