Beispiel #1
0
def api_delete_key(request, key_key):
    customer = ApiCustomer.get(key_key)
    if customer:
        customer.delete()
    return redirect('admin/api/')
Beispiel #2
0
def api_view_key(request, key_key):
    customer = ApiCustomer.get(key_key)
    return render_to_response('admin/api/view_key.html', {'customer':customer})