diff options
author | nishanth | 2010-02-26 01:43:24 +0530 |
---|---|---|
committer | nishanth | 2010-02-26 01:43:24 +0530 |
commit | 63094b986d871e6302a5603d43b91a2d7dfdd51d (patch) | |
tree | ebb8136c831453e8b50ecfbd2ae37bcc78fd66c0 /taskapp/views | |
parent | 8ebb266ae705a923bfc081663516a19750c7b31d (diff) | |
download | pytask-63094b986d871e6302a5603d43b91a2d7dfdd51d.tar.gz pytask-63094b986d871e6302a5603d43b91a2d7dfdd51d.tar.bz2 pytask-63094b986d871e6302a5603d43b91a2d7dfdd51d.zip |
updated browse_tasks page. now it does not display deleted or unpublished tasks.
Diffstat (limited to 'taskapp/views')
-rw-r--r-- | taskapp/views/task.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/taskapp/views/task.py b/taskapp/views/task.py index 9deab07..509f89b 100644 --- a/taskapp/views/task.py +++ b/taskapp/views/task.py @@ -15,7 +15,7 @@ def browse_tasks(request): """ 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, |