# HG changeset patch # User Nishanth Amuluru # Date 1294385011 -19800 # Node ID 69d1c4b99503eb3491ba1342bb4195f7d30fdebb # Parent 20f411241654c539e8bfea57408ca23bbf02f1ae fixed a typo diff -r 20f411241654 -r 69d1c4b99503 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