# HG changeset patch # User nishanth # Date 1267128804 -19800 # Node ID a381c91a1618e213eb1511e0ec324f15efd82366 # Parent 131554cc34348b2252fa61b690068b01431fc193 updated browse_tasks page. now it does not display deleted or unpublished tasks. diff -r 131554cc3434 -r a381c91a1618 taskapp/views/task.py --- a/taskapp/views/task.py Fri Feb 26 01:23:17 2010 +0530 +++ b/taskapp/views/task.py Fri Feb 26 01:43:24 2010 +0530 @@ -15,7 +15,7 @@ """ display all the tasks """ user = request.user - task_list = Task.objects.order_by('id').reverse() + task_list = Task.objects.exclude(status="UP").exclude(status="DL").order_by('creation_datetime').reverse() context = {'user':user, 'task_list':task_list,