(username)
Get dashboard settings for the user given.

    If no settings found, creates default settings.

    :param string username:
    :return dash.models.DashboardSettings: Returns
        ``dash.models.DashboardSettings`` instance.
Get dashboard settings for the user given.
Get dashboard settings for the user given .
def get_dashboard_settings(username):
    """Get dashboard settings for the user given.

    If no settings found, creates default settings.

    :param string username:
    :return dash.models.DashboardSettings: Returns
        ``dash.models.DashboardSettings`` instance.
    """
    # Check if user trying to edit the dashboard workspace actually owns it.
    try:
        return DashboardSettings._default_manager \
                                .select_related('user') \
                                .get(user__username=username)
    except ObjectDoesNotExist:
        pass
def get_dashboard_settings ( username ) : # Check if user trying to edit the dashboard workspace actually owns it. try : return DashboardSettings . _default_manager . select_related ( 'user' ) . get ( user__username = username ) except ObjectDoesNotExist : pass