diff options
author | nishanth | 2010-03-02 03:57:56 +0530 |
---|---|---|
committer | nishanth | 2010-03-02 03:57:56 +0530 |
commit | 976b477790b6fa6b53f6ad17621f04601701fe1f (patch) | |
tree | 6dcf08f6346c81bb51fe947218e99bedea277d6d | |
parent | 8b25ebe4a6427c5cf4136d0588037b3de6ffcf39 (diff) | |
download | pytask-976b477790b6fa6b53f6ad17621f04601701fe1f.tar.gz pytask-976b477790b6fa6b53f6ad17621f04601701fe1f.tar.bz2 pytask-976b477790b6fa6b53f6ad17621f04601701fe1f.zip |
fixed a bug in home page for guests.
-rw-r--r-- | taskapp/views/user.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/taskapp/views/user.py b/taskapp/views/user.py index e5ee28b..35628d7 100644 --- a/taskapp/views/user.py +++ b/taskapp/views/user.py @@ -46,7 +46,7 @@ def homepage(request): if not user.is_authenticated(): is_guest = True disp_num = 10 - task_list = Task.objects.exclude(status="UP").exclude(status="CD").exclude("CM").order_by('published_datetime').reverse()[:10] + task_list = Task.objects.exclude(status="UP").exclude(status="CD").exclude(status="CM").order_by('published_datetime').reverse()[:10] return render_to_response('index.html', {'user':user, 'is_guest':is_guest, 'task_list':task_list}) else: |