Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

registration: Document incorrect 500 template use.

Tim Abbottf15d12f257bd
diff --git a/zerver/views/registration.py b/zerver/views/registration.py
index e7bae3d6d30..479b1c38f64 100644
--- a/zerver/views/registration.py
+++ b/zerver/views/registration.py
@@ -946,6 +946,10 @@ def create_realm(request: HttpRequest, creation_key: str | None = None) -> HttpR
except EmailNotDeliveredError:
logging.exception("Failed to deliver email during realm creation")
if settings.CORPORATE_ENABLED:
+ # BUG: Because Django's server_error doesn't
+ # support context, this doesn't render the
+ # template properly for the corporate case.
+ # https://docs.djangoproject.com/en/5.1/ref/views/#the-500-server-error-view
return server_error(request)
return config_error(request, "smtp")