(request, id_)
return render(request, 'error.html',
                              {'error':'Expected AJAX/POST'})
Remove a Exploit.

    :param request: Django request.
    :type request: :class:`django.http.HttpRequest`
    :param id_: The ObjectId of the Exploit to remove.
    :type id_: str
    :returns: :class:`django.http.HttpResponse`
Remove a Exploit.
Remove a Exploit .
def remove_exploit(request, id_):
    """
    Remove a Exploit.

    :param request: Django request.
    :type request: :class:`django.http.HttpRequest`
    :param id_: The ObjectId of the Exploit to remove.
    :type id_: str
    :returns: :class:`django.http.HttpResponse`
    """

    if request.method == "POST":
        exploit_remove(id_, request.user.username)
        return HttpResponseRedirect(reverse('crits-exploits-views-exploits_listing'))
    return render(request, 'error.html',
                              {'error':'Expected AJAX/POST'})
def remove_exploit ( request , id_ ) : if request . method == "POST" : exploit_remove ( id_ , request . user . username ) return HttpResponseRedirect ( reverse ( 'crits-exploits-views-exploits_listing' ) ) return render ( request , 'error.html' , { 'error' : 'Expected AJAX/POST' } )