registration: Rename source_realm field to source_realm_id.

Now that we are passing source realm's id instead of string_id in
source realm selector, it makes sense to rename the "source_realm" field
to "source_realm_id".
This commit is contained in:
Siddharth Asthana
2020-12-05 00:15:58 +05:30
committed by Tim Abbott
parent 4262c04db1
commit 55da3329ef
4 changed files with 11 additions and 11 deletions

View File

@@ -611,7 +611,7 @@ Output:
timezone: str = "",
realm_in_root_domain: Optional[str] = None,
default_stream_groups: Sequence[str] = [],
source_realm: str = "",
source_realm_id: str = "",
key: Optional[str] = None,
**kwargs: Any,
) -> HttpResponse:
@@ -635,7 +635,7 @@ Output:
"terms": True,
"from_confirmation": from_confirmation,
"default_stream_group": default_stream_groups,
"source_realm": source_realm,
"source_realm_id": source_realm_id,
}
if realm_in_root_domain is not None:
payload["realm_in_root_domain"] = realm_in_root_domain