Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
decorator: Pass patch parameters in request.POST.
Aman Agrawalbbacee7fe966
diff --git a/corporate/views/billing_page.py b/corporate/views/billing_page.pyindex 359907453e0..ab271f3031f 100644--- a/corporate/views/billing_page.py+++ b/corporate/views/billing_page.py@@ -16,7 +16,7 @@ from corporate.lib.stripe import (UpdatePlanRequest,)from corporate.models import CustomerPlan, get_current_plan_by_customer, get_customer_by_realm-from zerver.decorator import require_billing_access, zulip_login_required+from zerver.decorator import process_as_post, require_billing_access, zulip_login_requiredfrom zerver.lib.request import REQ, has_request_variablesfrom zerver.lib.response import json_successfrom zerver.lib.typed_endpoint import typed_endpoint@@ -215,8 +215,9 @@ def update_plan(return json_success(request)-@has_request_variables@authenticated_remote_realm_management_endpoint+@process_as_post+@has_request_variablesdef update_plan_for_remote_realm(request: HttpRequest,billing_session: RemoteRealmBillingSession,@@ -241,8 +242,9 @@ def update_plan_for_remote_realm(return json_success(request)-@has_request_variables@authenticated_remote_server_management_endpoint+@process_as_post+@has_request_variablesdef update_plan_for_remote_server(request: HttpRequest,billing_session: RemoteServerBillingSession,