(request, _id)
Set a highlight date in RawData. Should be an AJAX POST.

    :param request: Django request object (Required)
    :type request: :class:`django.http.HttpRequest`
    :param _id: The ObjectId of the RawData.
    :type _id: str
    :returns: :class:`django.http.HttpResponse`
Set a highlight date in RawData. Should be an AJAX POST.
Set a highlight date in RawData . Should be an AJAX POST .
def set_raw_data_highlight_date(request, _id):
    """
    Set a highlight date in RawData. Should be an AJAX POST.

    :param request: Django request object (Required)
    :type request: :class:`django.http.HttpRequest`
    :param _id: The ObjectId of the RawData.
    :type _id: str
    :returns: :class:`django.http.HttpResponse`
    """

    if request.method == 'POST':
        date = request.POST['date']
        line = request.POST['line']
        analyst = request.user.username
        return HttpResponse(json.dumps(update_raw_data_highlight_date(_id,
                                                                      date,
                                                                      line,
                                                                      analyst)),
                            content_type="application/json")
    else:
        error = "Expected POST"
        return render(request, "error.html", {"error" : error })
def set_raw_data_highlight_date ( request , _id ) : if request . method == 'POST' : date = request . POST [ 'date' ] line = request . POST [ 'line' ] analyst = request . user . username return HttpResponse ( json . dumps ( update_raw_data_highlight_date ( _id , date , line , analyst ) ) , content_type = "application/json" ) else : error = "Expected POST" return render ( request , "error.html" , { "error" : error } )