Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
billing: Rename billing_home to billing_page.
Aman Agrawale949fb47fff0
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.pyindex 1953e874128..b51007c3735 100644--- a/corporate/lib/stripe.py+++ b/corporate/lib/stripe.py@@ -1449,7 +1449,7 @@ class BillingSession(ABC):if self.is_sponsored_or_pending(customer):return f"{self.billing_session_url}/sponsorship", None- billing_page_url = reverse("billing_home")+ billing_page_url = reverse("billing_page")if customer is not None and (get_current_plan_by_customer(customer) is not None):return billing_page_url, Nonediff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.pyindex baf757c83b1..fa8c97ae499 100644--- a/corporate/tests/test_stripe.py+++ b/corporate/tests/test_stripe.py@@ -1890,7 +1890,7 @@ class StripeTest(StripeTestCase):response,)- def test_redirect_for_billing_home(self) -> None:+ def test_redirect_for_billing_page(self) -> None:user = self.example_user("iago")self.login_user(user)response = self.client_get("/billing/")diff --git a/corporate/urls.py b/corporate/urls.pyindex fa0c1913c22..b4e13a7edfb 100644--- a/corporate/urls.py+++ b/corporate/urls.py@@ -4,7 +4,7 @@ from django.conf.urls import includefrom django.urls import pathfrom django.views.generic import RedirectView, TemplateView-from corporate.views.billing_page import billing_home, update_plan+from corporate.views.billing_page import billing_page, update_planfrom corporate.views.event_status import (event_status,event_status_page,@@ -63,7 +63,7 @@ i18n_urlpatterns: Any = [path("zephyr-mirror/", TemplateView.as_view(template_name="corporate/zephyr-mirror.html")),path("jobs/", TemplateView.as_view(template_name="corporate/jobs.html")),# Billing- path("billing/", billing_home, name="billing_home"),+ path("billing/", billing_page, name="billing_page"),path("sponsorship/", sponsorship_page, name="sponsorship_request"),path("upgrade/", upgrade_page, name="upgrade_page"),path("support/", support_request),diff --git a/corporate/views/billing_page.py b/corporate/views/billing_page.pyindex 37fda56e8aa..0369df55c5d 100644--- a/corporate/views/billing_page.py+++ b/corporate/views/billing_page.py@@ -18,7 +18,7 @@ billing_logger = logging.getLogger("corporate.stripe")@zulip_login_required@has_request_variables-def billing_home(+def billing_page(request: HttpRequest,success_message: str = REQ(default="", str_validator=check_string),) -> HttpResponse:diff --git a/corporate/views/sponsorship.py b/corporate/views/sponsorship.pyindex 45b7e72c0d4..5b331f78f55 100644--- a/corporate/views/sponsorship.py+++ b/corporate/views/sponsorship.py@@ -25,7 +25,7 @@ def sponsorship_page(request: HttpRequest) -> HttpResponse:billing_session = RealmBillingSession(user)context = billing_session.get_sponsorship_request_context()if context is None:- return HttpResponseRedirect(reverse("billing_home"))+ return HttpResponseRedirect(reverse("billing_page"))return render(request, "corporate/sponsorship.html", context=context)