summaryrefslogtreecommitdiff
path: root/taskapp/views/task.py
diff options
context:
space:
mode:
Diffstat (limited to 'taskapp/views/task.py')
-rw-r--r--taskapp/views/task.py4
1 files changed, 3 insertions, 1 deletions
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,