models: Remove Realm.domain.

This commit is contained in:
Rishi Gupta
2017-03-13 16:51:51 -07:00
committed by Tim Abbott
parent b416587aab
commit 30024d0a8f
9 changed files with 31 additions and 25 deletions

View File

@@ -2058,10 +2058,7 @@ def do_create_realm(string_id, name, restricted_to_domain=None,
kwargs['invite_required'] = invite_required
if org_type is not None:
kwargs['org_type'] = org_type
# General a value for domain that we control
domain = string_id + "." + settings.EXTERNAL_HOST
realm = Realm(string_id=string_id, name=name,
domain=domain, **kwargs)
realm = Realm(string_id=string_id, name=name, **kwargs)
realm.save()
# Create stream once Realm object has been saved