Initial steps towards whitelabeling new realms.

Truthfully, the actual way to do this is going to be a bit
more involved and also involves changing Realm.NOTIFICATION_STREAM_NAME,
probably on a realm-by-realm basis.

(imported from commit b6a05849d215e07ee6716d116ff5e2c819d5b4be)
This commit is contained in:
Waseem Daher
2014-07-16 21:52:06 -07:00
parent 47873c181b
commit a54d50ab2d

View File

@@ -1563,9 +1563,10 @@ def do_create_realm(domain, name, restricted_to_domain=True):
realm.save(update_fields=['notifications_stream'])
# Include a welcome message in this notifications stream
content = """Hello, and welcome to Zulip!
product_name = "Zulip"
content = """Hello, and welcome to %s!
This is a message on stream `zulip` with the topic `welcome`. We'll use this stream for system-generated notifications."""
This is a message on stream `%s` with the topic `welcome`. We'll use this stream for system-generated notifications.""" % (product_name, notifications_stream.name,)
msg = internal_prep_message(settings.WELCOME_BOT, 'stream',
notifications_stream.name, "welcome",
content, realm=realm)