summaryrefslogtreecommitdiff
path: root/profile
diff options
context:
space:
mode:
authorNishanth Amuluru2011-01-07 12:21:43 +0530
committerNishanth Amuluru2011-01-07 12:21:43 +0530
commit75d1a5e6a46ded6293b730b57b2a89484a96dd6d (patch)
tree27a8d2b081aa22205d44ddf8459617ee0fcf64d6 /profile
parent6204222b31e3225e345c3fddde631d49281cdc71 (diff)
downloadpytask-75d1a5e6a46ded6293b730b57b2a89484a96dd6d.tar.gz
pytask-75d1a5e6a46ded6293b730b57b2a89484a96dd6d.tar.bz2
pytask-75d1a5e6a46ded6293b730b57b2a89484a96dd6d.zip
fixed a typo and browse notifications works fine
Diffstat (limited to 'profile')
-rw-r--r--profile/urls.py8
-rwxr-xr-xprofile/views.py2
2 files changed, 6 insertions, 4 deletions
diff --git a/profile/urls.py b/profile/urls.py
index a577d56..a5e92cd 100644
--- a/profile/urls.py
+++ b/profile/urls.py
@@ -1,10 +1,12 @@
from django.conf.urls.defaults import *
-from pytask.profile.views import view_profile, edit_profile
+from pytask.profile.views import view_profile, edit_profile,\
+ browse_notifications
urlpatterns = patterns('',
- (r'view', view_profile),
- (r'edit', edit_profile),
+ (r'^view/$', view_profile),
+ (r'^edit/$', edit_profile),
+ (r'^notf/browse/$', browse_notifications),
)
diff --git a/profile/views.py b/profile/views.py
index 9192180..386ca49 100755
--- a/profile/views.py
+++ b/profile/views.py
@@ -48,7 +48,7 @@ def browse_notifications(request):
""" get the list of notifications that are not deleted and display in
datetime order."""
- user = get_user(request.user)
+ user = request.user
active_notifications = user.notification_sent_to.filter(is_deleted=False).order_by('sent_date').reverse()