Return whatever context can be shown for non-logged in user for tasks browse.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 06:12:25 +0530 (2011-01-20)
changeset 489 9cd090b8cd52
parent 488 c4e9771a274b
child 490 5b15b4080c33
Return whatever context can be shown for non-logged in user for tasks browse.
pytask/taskapp/views.py
--- a/pytask/taskapp/views.py	Thu Jan 20 06:02:34 2011 +0530
+++ b/pytask/taskapp/views.py	Thu Jan 20 06:12:25 2011 +0530
@@ -72,7 +72,8 @@
 
     user = request.user
     if not user.is_authenticated():
-        return shortcuts.render_to_response("task/browse.html")
+        return shortcuts.render_to_response("task/browse.html",
+                                            RequestContext(request, context))
 
     profile = user.get_profile()