@PostOnly
def remove_org(request):
    try:
        id = getattr(request.POST, 'id')
        org = Org.objects.get(id = id)
    except __HOLE__, ObjectDoesNotExist:
        return json_error(INVALID_ORG_ID_ERROR)

    # TODO: so, uh, we need to figure out if the current user is authorized to do this?

    org.delete()
    cache.bust_on_handle(org, org.handle, False)
    return json_response({'result' : 1})
dataset/ETHPy150Open jumoconnect/openjumo/jumodjango/org/ajax/views.py/remove_org