@require_POST
@login_required
def resume(request, code):
    check = _get_rw_check_for_user(request, code)
    check.status = 'new'
    check.last_start = None
    check.last_ping = None
    check.alert_after = None
    check.save()
    return redirect('hc-details', code)
@require_POST
@login_required
def resume(request, code):
    check = _get_rw_check_for_user(request, code)
    check.status = 'new'
    check.last_start = None
    check.last_ping = None
    check.alert_after = None
    check.save()
    return redirect('hc-details', code)