diff options
author | Nishanth Amuluru | 2011-01-07 12:53:31 +0530 |
---|---|---|
committer | Nishanth Amuluru | 2011-01-07 12:53:31 +0530 |
commit | ed938c0ff8f8cba1c06fa78906bcf87d94658dcd (patch) | |
tree | 1be42f5ffcd5ec8385263215d93024901ac7e8b2 | |
parent | 2b95f9c97294038350a0e440e2f72a4d0f292fe2 (diff) | |
download | pytask-ed938c0ff8f8cba1c06fa78906bcf87d94658dcd.tar.gz pytask-ed938c0ff8f8cba1c06fa78906bcf87d94658dcd.tar.bz2 pytask-ed938c0ff8f8cba1c06fa78906bcf87d94658dcd.zip |
fixed a typo
-rwxr-xr-x | profile/views.py | 9 |
1 files changed, 6 insertions, 3 deletions
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 |