summaryrefslogtreecommitdiff
path: root/profile
diff options
context:
space:
mode:
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()