Пример #1
0
def delete_save_search(request):
    """
    Called via ajax to delete a table. Only called from the saved_search.html
    """
    id = request.GET.get("id", None)
    if not id:
        return respondWithError("Saved search cannot be found." " Please refresh and try again", True)
    response = delete_table(request.user.id, id)

    return httpResponse(response)
Пример #2
0
def delete_save_search(request):
    """
    Called via ajax to delete a table. Only called from the saved_search.html
    """
    id = request.GET.get("id", None)
    if not id:
        return respondWithError("Saved search cannot be found."\
                                " Please refresh and try again", True)
    response = delete_table(request.user.id, id)

    return httpResponse(response)