July 3rd - Update landing page
This commit is contained in:
@@ -269,6 +269,10 @@ def create_tenant(slug, name, plan_code, admin_email, admin_username=None,
|
||||
if trial_days:
|
||||
t.subscription_status = 'trial'
|
||||
t.trial_ends_at = now_eastern() + timedelta(days=trial_days)
|
||||
else:
|
||||
# No trial (e.g. Free plan) — provision as active so the billing
|
||||
# gate treats it as a live, non-expiring subscription.
|
||||
t.subscription_status = 'active'
|
||||
t.set_db_password(password)
|
||||
s.add(t); s.flush()
|
||||
tenant_id = t.id
|
||||
|
||||
Reference in New Issue
Block a user