(request)
return respondWithSuccess(dashName + " is now your default dashboard.")
Ajax call to set the users default dashboard. Called from saved_searches_list.html
Ajax call to set the users default dashboard. Called from saved_searches_list.html
Ajax call to set the users default dashboard . Called from saved_searches_list . html
def set_default_dashboard(request):
    """
    Ajax call to set the users default dashboard. Called from saved_searches_list.html
    """
    id = request.GET.get('id', None)
    dashName = setDefaultDashboard(request.user, id)
    if not dashName:
        respondWithError("An error occurred while updating dashboard. Please try again later.", True)
    return respondWithSuccess(dashName + " is now your default dashboard.")
def set_default_dashboard ( request ) : id = request . GET . get ( 'id' , None ) dashName = setDefaultDashboard ( request . user , id ) if not dashName : respondWithError ( "An error occurred while updating dashboard. Please try again later." , True ) return respondWithSuccess ( dashName + " is now your default dashboard." )