From ed938c0ff8f8cba1c06fa78906bcf87d94658dcd Mon Sep 17 00:00:00 2001
From: Nishanth Amuluru
Date: Fri, 7 Jan 2011 12:53:31 +0530
Subject: fixed a typo

---
 profile/views.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'profile/views.py')

diff --git a/profile/views.py b/profile/views.py
index 40eb0a7..832ccf6 100755
--- a/profile/views.py
+++ b/profile/views.py
@@ -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 @@ def browse_notifications(request):
                'notifications':active_notifications,
               }                               
 
+    print active_notifications
+
     return render_to_response('profile/browse_notifications.html', context)
 
 @login_required
@@ -64,9 +68,8 @@ def view_notification(request, nid):
     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
-- 
cgit