taskapp/views/task.py
changeset 217 307f699e6102
parent 215 84ec0ca5bc68
child 218 59107ce0a618
--- 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,