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)))
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)))
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)))