request object no longer contains notification functions
authorRodney Ewing <ewing.rj@gmail.com>
Tue, 20 Aug 2013 15:25:26 +0000 (08:25 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Tue, 20 Aug 2013 15:25:26 +0000 (08:25 -0700)
mediagoblin/notifications/views.py

index 5a67c1ba031ce8907a6590f8f24f993965960cd5..cfe66b2e7d5c88527859dee90c92849f23e02492 100644 (file)
@@ -19,8 +19,9 @@ from mediagoblin.tools.translate import pass_to_ugettext as _
 from mediagoblin.decorators import get_user_media_entry, require_active_login
 from mediagoblin import messages
 
-from mediagoblin.notifications import add_comment_subscription, \
-    silence_comment_subscription, mark_comment_notification_seen
+from mediagoblin.notifications import (add_comment_subscription,
+    silence_comment_subscription, mark_comment_notification_seen,
+    get_notifications)
 
 
 @get_user_media_entry
@@ -55,7 +56,7 @@ def mark_all_comment_notifications_seen(request):
     """
     Marks all comment notifications seen.
     """
-    for comment in request.notifications.get_notifications(request.user.id):
+    for comment in get_notifications(request.user.id):
         mark_comment_notification_seen(comment.subject_id, request.user)
 
     if request.GET.get('next'):