parameters: (request)
return_statement: return respondWithSuccess(dashName + " is now your default dashboard.")
docstring: Ajax call to set the users default dashboard. Called from saved_searches_list.html
docstring_summary: Ajax call to set the users default dashboard. Called from saved_searches_list.html
docstring_tokens: Ajax call to set the users default dashboard . Called from saved_searches_list . html
function: 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.")
function_tokens: 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." )