mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 23:19:10 +00:00
install: Don't create internal realm in the installation process.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from django.conf import settings
|
||||
|
||||
from zerver.lib.actions import do_change_is_admin
|
||||
from zerver.lib.bulk_create import bulk_create_users
|
||||
from zerver.models import Realm, UserProfile, email_to_username, get_client, \
|
||||
get_system_bot
|
||||
@@ -8,9 +7,11 @@ from zerver.models import Realm, UserProfile, email_to_username, get_client, \
|
||||
from typing import Iterable, Optional, Tuple
|
||||
|
||||
def server_initialized() -> bool:
|
||||
return Realm.objects.count() > 0
|
||||
return Realm.objects.exists()
|
||||
|
||||
def create_internal_realm() -> None:
|
||||
from zerver.lib.actions import do_change_is_admin
|
||||
|
||||
realm = Realm.objects.create(string_id=settings.SYSTEM_BOT_REALM)
|
||||
|
||||
# Create the "website" and "API" clients:
|
||||
|
||||
Reference in New Issue
Block a user