(request, entry_id)
Cut the given dashboard entry.

    It's not possible to remove undeletable entries.

    :param django.http.HttpRequest request:
    :param int entry_id: ID of the DashboardEntry to cut to clipboard.
    :return django.http.HttpResponse:
Cut the given dashboard entry.
Cut the given dashboard entry .
def cut_dashboard_entry(request, entry_id):
    """Cut the given dashboard entry.

    It's not possible to remove undeletable entries.

    :param django.http.HttpRequest request:
    :param int entry_id: ID of the DashboardEntry to cut to clipboard.
    :return django.http.HttpResponse:
    """
    dashboard_entry = DashboardEntry._default_manager.select_related(
        'workspace'
    ).get(
        pk=entry_id,
        user=request.user
    )
    workspace = dashboard_entry.workspace
    plugin = dashboard_entry.get_plugin()

    cut_entry_to_clipboard(request, dashboard_entry)

    messages.info(request, _('The dashboard function "{0}" was successfully '
                             'cut and placed into the '
                             'clipboard.').format(safe_text(plugin.name)))

    if workspace and workspace.slug:
        return redirect('dash.edit_dashboard', workspace=workspace.slug)
    else:
        return redirect('dash.edit_dashboard')
def cut_dashboard_entry ( request , entry_id ) : dashboard_entry = DashboardEntry . _default_manager . select_related ( 'workspace' ) . get ( pk = entry_id , user = request . user ) workspace = dashboard_entry . workspace plugin = dashboard_entry . get_plugin ( ) cut_entry_to_clipboard ( request , dashboard_entry ) messages . info ( request , _ ( 'The dashboard function "{0}" was successfully ' 'cut and placed into the ' 'clipboard.' ) . format ( safe_text ( plugin . name ) ) ) if workspace and workspace . slug : return redirect ( 'dash.edit_dashboard' , workspace = workspace . slug ) else : return redirect ( 'dash.edit_dashboard' )