Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
populate_billing_realms: Add Zulip Cloud Free realms.
Aman Agrawalc9a55941b08c
diff --git a/zilencer/management/commands/populate_billing_realms.py b/zilencer/management/commands/populate_billing_realms.pyindex a7496dfe023..b79d6922f70 100644--- a/zilencer/management/commands/populate_billing_realms.py+++ b/zilencer/management/commands/populate_billing_realms.py@@ -40,6 +40,10 @@ class Command(BaseCommand):customer_profiles = [# NOTE: The unique_id has to be less than 40 characters.CustomerProfile(unique_id="sponsorship-pending", sponsorship_pending=True),+ CustomerProfile(+ unique_id="annual-free",+ billing_schedule=CustomerPlan.ANNUAL,+ ),CustomerProfile(unique_id="annual-standard",billing_schedule=CustomerPlan.ANNUAL,@@ -50,6 +54,10 @@ class Command(BaseCommand):billing_schedule=CustomerPlan.ANNUAL,tier=CustomerPlan.PLUS,),+ CustomerProfile(+ unique_id="monthly-free",+ billing_schedule=CustomerPlan.MONTHLY,+ ),CustomerProfile(unique_id="monthly-standard",billing_schedule=CustomerPlan.MONTHLY,@@ -145,7 +153,8 @@ class Command(BaseCommand):)continue- assert customer_profile.tier is not None+ if customer_profile.tier is None:+ continuecustomer = update_or_create_stripe_customer(user)assert customer.stripe_customer_id is not None