fixed a typo
authorNishanth Amuluru <nishanth@fossee.in>
Fri, 07 Jan 2011 12:53:31 +0530
changeset 282 69d1c4b99503
parent 281 20f411241654
child 283 c8bcc41221cb
fixed a typo
profile/views.py
--- a/profile/views.py	Fri Jan 07 12:53:12 2011 +0530
+++ b/profile/views.py	Fri Jan 07 12:53:31 2011 +0530
@@ -1,10 +1,12 @@
 from django.shortcuts import render_to_response, redirect
+from django.http import Http404
 
 from django.contrib.auth.decorators import login_required
 from django.core.context_processors import csrf
 from django.views.decorators.csrf import csrf_protect
 
 from pytask.profile.forms import EditProfileForm
+from pytask.profile.utils import get_notification
 
 @login_required
 def view_profile(request):
@@ -56,6 +58,8 @@
                'notifications':active_notifications,
               }                               
 
+    print active_notifications
+
     return render_to_response('profile/browse_notifications.html', context)
 
 @login_required
@@ -64,9 +68,8 @@
     Display it.
     """
 
-    user = get_user(request.user)
-    newest, newer, notification, older, oldest =
-    get_notification(nid, user)
+    user = request.user
+    newest, newer, notification, older, oldest = get_notification(nid, user)
 
     if not notification:
         raise Http404