mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
models: Replace realm.uri with realm.url.
In #23380, we are changing all occurrences of uri with url in order to follow the latest URL standard. Previous PRs #25038 and #25045 has replaced the occurences of uri that has no direct relation with realm. This commit changes just the model property, which has no API compatibility concerns.
This commit is contained in:
@@ -42,7 +42,7 @@ def common_context(user: UserProfile) -> Dict[str, Any]:
|
||||
have a request.
|
||||
"""
|
||||
return {
|
||||
"realm_uri": user.realm.uri,
|
||||
"realm_uri": user.realm.url,
|
||||
"realm_name": user.realm.name,
|
||||
"root_domain_url": settings.ROOT_DOMAIN_URI,
|
||||
"external_url_scheme": settings.EXTERNAL_URI_SCHEME,
|
||||
@@ -122,7 +122,7 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]:
|
||||
realm_name = None
|
||||
realm_icon = None
|
||||
else:
|
||||
realm_uri = realm.uri
|
||||
realm_uri = realm.url
|
||||
realm_name = realm.name
|
||||
realm_icon = get_realm_icon_url(realm)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user