mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
create_realm: Fix copy/paste error in assertion message.
This commit is contained in:
committed by
Tim Abbott
parent
b68cb5b049
commit
6ecfbd2ae8
@@ -168,7 +168,7 @@ def do_create_realm(
|
||||
) -> Realm:
|
||||
if string_id in [settings.SOCIAL_AUTH_SUBDOMAIN, settings.SELF_HOSTING_MANAGEMENT_SUBDOMAIN]:
|
||||
raise AssertionError(
|
||||
"Creating a realm on SOCIAL_AUTH_SUBDOMAIN or SOCIAL_AUTH_SUBDOMAIN is not allowed!"
|
||||
"Creating a realm on SOCIAL_AUTH_SUBDOMAIN or SELF_HOSTING_MANAGEMENT_SUBDOMAIN is not allowed!"
|
||||
)
|
||||
if Realm.objects.filter(string_id=string_id).exists():
|
||||
raise AssertionError(f"Realm {string_id} already exists!")
|
||||
|
||||
Reference in New Issue
Block a user