From 8213ca135a71acc22b433efc604dd635885f4273 Mon Sep 17 00:00:00 2001 From: Vishnu Ks Date: Fri, 17 Jun 2016 07:23:40 +0530 Subject: [PATCH] Move default_stream list to settings. --- zerver/management/commands/initialize_voyager_db.py | 2 +- zproject/settings.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/zerver/management/commands/initialize_voyager_db.py b/zerver/management/commands/initialize_voyager_db.py index 80eb23e6ff..d9ad831031 100644 --- a/zerver/management/commands/initialize_voyager_db.py +++ b/zerver/management/commands/initialize_voyager_db.py @@ -66,7 +66,7 @@ class Command(BaseCommand): (admin_realm, _) = do_create_realm(settings.ADMIN_DOMAIN, settings.ADMIN_DOMAIN, True) - set_default_streams(admin_realm, ["social", "general", "zulip"]) + set_default_streams(admin_realm, settings.DEFAULT_NEW_REALM_STREAMS) self.stdout.write("Successfully populated database with initial data.\n") diff --git a/zproject/settings.py b/zproject/settings.py index 90212f5668..d7efecbc90 100644 --- a/zproject/settings.py +++ b/zproject/settings.py @@ -147,6 +147,7 @@ DEFAULT_SETTINGS = {'TWITTER_CONSUMER_KEY': '', 'GOOGLE_CLIENT_ID': '', 'DBX_APNS_CERT_FILE': None, 'EXTRA_INSTALLED_APPS': [], + 'DEFAULT_NEW_REALM_STREAMS': ["social", "general", "zulip"], } for setting_name, setting_val in six.iteritems(DEFAULT_SETTINGS):