home.py: move realm_uri to register_ret.

Part of #3853.
This commit is contained in:
fionabunny
2017-04-18 21:38:28 -07:00
committed by Tim Abbott
parent 6057c444e2
commit 504de6abc2
2 changed files with 2 additions and 1 deletions

View File

@@ -110,6 +110,7 @@ def fetch_initial_state_data(user_profile, event_types, queue_id,
state['realm_icon_source'] = user_profile.realm.icon_source
state['max_icon_file_size'] = settings.MAX_ICON_FILE_SIZE
state['realm_bot_domain'] = user_profile.realm.get_bot_domain()
state['realm_uri'] = user_profile.realm.uri
if want('realm_domains'):
state['realm_domains'] = get_realm_domains(user_profile.realm)

View File

@@ -211,7 +211,6 @@ def home_real(request):
# realm data.
# TODO: Move all of these data to register_ret and pull from there
realm_uri = user_profile.realm.uri,
password_auth_enabled = password_auth_enabled(user_profile.realm),
domains = list_of_domains_for_realm(user_profile.realm),
name_changes_disabled = name_changes_disabled(user_profile.realm),
@@ -313,6 +312,7 @@ def home_real(request):
'realm_description',
'realm_name_changes_disabled',
'realm_restricted_to_domain',
'realm_uri',
'realm_waiting_period_threshold',
'referrals',
'twenty_four_hour_time',