registration: Only add realm creation context if form is for that.

This commit is contained in:
Aman Agrawal
2025-04-29 12:55:34 +05:30
committed by Tim Abbott
parent 5d4142e056
commit 3cf4251944

View File

@@ -750,8 +750,10 @@ def registration_helper(
"email_address_visibility_options_dict": UserProfile.EMAIL_ADDRESS_VISIBILITY_ID_TO_NAME_MAP,
"how_realm_creator_found_zulip_options": RealmAuditLog.HOW_REALM_CREATOR_FOUND_ZULIP_OPTIONS.items(),
}
# Add context for realm creation part of the form.
context.update(get_realm_create_form_context())
if realm_creation:
# Add context for realm creation part of the form.
context.update(get_realm_create_form_context())
return TemplateResponse(request, "zerver/register.html", context=context)