def dispatch(self, request, *args, **kwargs): command = request.POST.get("command") if command: return get_basket_command_dispatcher(request).handle(command) else: return get_basket_view()(request, *args, **kwargs)
def dispatch(self, request, *args, **kwargs): command = request.REQUEST.get("command") if command: return get_basket_command_dispatcher(request).handle(command) else: return get_basket_view()(request, *args, **kwargs)