mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 02:53:52 +00:00
This is a preparatory commit for using isort for sorting all of our imports, merging changes to files where we can easily review the changes as something we're happy with. These are also files with relatively little active development, which means we don't expect much merge conflict risk from these changes.
20 lines
622 B
Python
20 lines
622 B
Python
from typing import Any
|
|
|
|
from django.core.management.base import BaseCommand
|
|
|
|
from zerver.lib.onboarding import create_if_missing_realm_internal_bots
|
|
|
|
|
|
class Command(BaseCommand):
|
|
help = """\
|
|
Create realm internal bots if absent, in all realms.
|
|
|
|
These are normally created when the realm is, so this should be a no-op
|
|
except when upgrading to a version that adds a new realm internal bot.
|
|
"""
|
|
|
|
def handle(self, *args: Any, **options: Any) -> None:
|
|
create_if_missing_realm_internal_bots()
|
|
# create_users is idempotent -- it's a no-op when a given email
|
|
# already has a user in a given realm.
|