mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-03-16 21:30:24 +00:00
Redirect to unread view after mark as read
This commit is contained in:
parent
dca99e959e
commit
c7fd00a0f3
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue