fixed a bug in home page for guests.
authornishanth
Tue, 02 Mar 2010 03:57:56 +0530
changeset 169 229bed827965
parent 168 42aba20cfe97
child 170 d69a562f969d
fixed a bug in home page for guests.
taskapp/views/user.py
--- a/taskapp/views/user.py	Tue Mar 02 03:55:38 2010 +0530
+++ b/taskapp/views/user.py	Tue Mar 02 03:57:56 2010 +0530
@@ -46,7 +46,7 @@
     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: