def METHOD_NAME(request):
    notifications = Notification.objects.all_unread(request.user)
    for note in notifications:
        note.unread = False
        note.time_read = timezone.now()
        note.save()
    return redirect('notifications:list')