@login_required
@require_POST
def mark_all(request):
    action = request.POST.get('action', None)
    success = True

    if action == 'read':
        request.user.notifications.read_all()
        msg = _("Marked all notifications as read")
    elif action == 'unread':
        request.user.notifications.unread_all()
        msg = _("Marked all notifications as unread")
    else:
        msg = _("Invalid mark action")
        success = False

    ctx = {'msg': msg, 'success': success, 'action': action}

    return notification_redirect(request, ctx)
Returns IP addresses configured on the device.
dataset/ETHPy150Open v1k45/django-notify-x/notify/views.py/mark_all--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/napalm_network.py/ipaddrs