Exemplo n.º 1
0
def delete_clipboard(request):
    if request.method == 'POST':
        clipboard = Clipboard.objects.get(id=request.POST.get('clipboard_id'))
        tools.delete_clipboard(clipboard)
    return HttpResponseRedirect('%s%s' % (
                                    request.POST.get('redirect_to', ''),
                                    popup_param(request)))
Exemplo n.º 2
0
def delete_clipboard(request):
    if request.method == "POST":
        clipboard = Clipboard.objects.get(id=request.POST.get("clipboard_id"))
        tools.delete_clipboard(clipboard)
    return HttpResponseRedirect("%s%s" % (request.POST.get("redirect_to", ""), popup_param(request)))
Exemplo n.º 3
0
def delete_clipboard(request):
    if request.method == 'POST':
        clipboard = Clipboard.objects.get(id=request.POST.get('clipboard_id'))
        tools.delete_clipboard(clipboard)
    return HttpResponseRedirect('%s%s%s' % (request.POST.get(
        'redirect_to', ''), popup_param(request), selectfolder_param(request)))