mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
actions: Rename do_change_plan_type -> do change_realm_plan_type.
We will soon be adding an equivalent function for RemoteZulipServer, so it makes sense to rename this function to be more descriptive.
This commit is contained in:
@@ -4619,7 +4619,7 @@ def do_change_realm_org_type(
|
||||
)
|
||||
|
||||
|
||||
def do_change_plan_type(
|
||||
def do_change_realm_plan_type(
|
||||
realm: Realm, plan_type: int, *, acting_user: Optional[UserProfile]
|
||||
) -> None:
|
||||
old_value = realm.plan_type
|
||||
@@ -5148,7 +5148,7 @@ def do_create_realm(
|
||||
realm.save(update_fields=["notifications_stream", "signup_notifications_stream"])
|
||||
|
||||
if plan_type is None and settings.BILLING_ENABLED:
|
||||
do_change_plan_type(realm, Realm.PLAN_TYPE_LIMITED, acting_user=None)
|
||||
do_change_realm_plan_type(realm, Realm.PLAN_TYPE_LIMITED, acting_user=None)
|
||||
|
||||
admin_realm = get_realm(settings.SYSTEM_BOT_REALM)
|
||||
sender = get_system_bot(settings.NOTIFICATION_BOT, admin_realm.id)
|
||||
|
||||
Reference in New Issue
Block a user