Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
forms: Set realm_creation field one time when initializing form.
Lauryn Menard7185f2c23637
diff --git a/zerver/forms.py b/zerver/forms.pyindex f96a0a3a907..f79a4b2c48b 100644--- a/zerver/forms.py+++ b/zerver/forms.py@@ -174,7 +174,6 @@ class RegistrationForm(RealmDetailsForm):def __init__(self, *args: Any, **kwargs: Any) -> None:# Since the superclass doesn't except random extra kwargs, we# remove it from the kwargs dict before initializing.- self.realm_creation = kwargs["realm_creation"]self.realm = kwargs.pop("realm", None)super().__init__(*args, **kwargs)