Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
support: Skip corporate import unless BILLING_ENABLED.
Anders Kaseorg59174694afd6
diff --git a/analytics/views/support.py b/analytics/views/support.pyindex 5fc0a935f8c..471459a8f36 100644--- a/analytics/views/support.py+++ b/analytics/views/support.py@@ -17,7 +17,6 @@ from django.utils.translation import gettext as _from confirmation.models import Confirmation, confirmation_urlfrom confirmation.settings import STATUS_ACTIVE-from corporate.models import Customer, CustomerPlanfrom zerver.actions.create_realm import do_change_realm_subdomainfrom zerver.actions.realm_settings import (do_change_realm_org_type,@@ -56,7 +55,12 @@ if settings.BILLING_ENABLED:update_sponsorship_status,void_all_open_invoices,)- from corporate.models import get_current_plan_by_realm, get_customer_by_realm+ from corporate.models import (+ Customer,+ CustomerPlan,+ get_current_plan_by_realm,+ get_customer_by_realm,+ )def get_plan_name(plan_type: int) -> str:@@ -133,8 +137,8 @@ VALID_BILLING_METHODS = [@dataclassclass PlanData:- customer: Optional[Customer] = None- current_plan: Optional[CustomerPlan] = None+ customer: Optional["Customer"] = None+ current_plan: Optional["CustomerPlan"] = Nonelicenses: Optional[int] = Nonelicenses_used: Optional[int] = None