From c7fd00a0f394ee08ee857f0f5dc48ac1eb5f2aaf Mon Sep 17 00:00:00 2001 From: Vladimir Osintsev Date: Sat, 13 Aug 2016 23:46:04 +0300 Subject: [PATCH] Redirect to unread view after mark as read --- notifications/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notifications/views.py b/notifications/views.py index c99edf8..a7dcef9 100644 --- a/notifications/views.py +++ b/notifications/views.py @@ -63,7 +63,7 @@ def mark_all_as_read(request): if _next: return redirect(_next) - return redirect('notifications:all') + return redirect('notifications:unread') @login_required @@ -79,7 +79,7 @@ def mark_as_read(request, slug=None): if _next: return redirect(_next) - return redirect('notifications:all') + return redirect('notifications:unread') @login_required @@ -95,7 +95,7 @@ def mark_as_unread(request, slug=None): if _next: return redirect(_next) - return redirect('notifications:all') + return redirect('notifications:unread') @login_required