def remove_customer(request, customer_id): ##TODO try catch this customer = business.get_customer(customer_id) customer.delete() return HttpResponse("OK")
def get_customer(request, customer_id): customer = business.get_customer(customer_id) return HttpResponse(serializers.serialize("json", [customer]), content_type="application/json")