示例#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)))
示例#2
0
文件: views.py 项目: barbarae/kipp
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)))
示例#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)))