@staff_member_required
@csrf_exempt
def remove_bookmark(request, id):
    bookmark = get_object_or_404(Bookmark, id=id)
    if request.method == "POST":
        bookmark.delete()
        if not request.is_ajax():
            messages.success(request, 'Bookmark removed')
            if request.POST.get('next'):
                return HttpResponseRedirect(request.POST.get('next'))
            return HttpResponse('Deleted')
        return render_to_response(
            'admin_tools/menu/add_bookmark_form.html',
            RequestContext(request, {
                'url': request.POST.get('next'),
                'title': '**title**'  # replaced on the javascript side
            })
        )
    return render_to_response(
        'admin_tools/menu/delete_confirm.html',
        RequestContext(request, {
            'bookmark': bookmark,
            'title': 'Delete Bookmark'
        })
    )
DIE
dataset/ETHPy150Open django-admin-tools/django-admin-tools/admin_tools/menu/views.py/remove_bookmark--crossover with--dataset/ETHPy150Open gawel/irc3/irc3d/plugins/core.py/Core.DIE