Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
confirmation: Remove Realm from ConfirmationObjT.
Zixuan James Lib41f9d9633fe
diff --git a/confirmation/models.py b/confirmation/models.pyindex 6288f87ad57..9375a58ee5b 100644--- a/confirmation/models.py+++ b/confirmation/models.py@@ -59,7 +59,6 @@ ConfirmationObjT = Union[PreregistrationUser,EmailChangeStatus,UserProfile,- Realm,RealmReactivationStatus,]@@ -120,11 +119,7 @@ def create_confirmation_link(# determined by the confirmation_type - its main purpose is for use# in tests which may want to have control over the exact expiration time.key = generate_key()- realm: Optional[Realm]- if isinstance(obj, Realm):- realm = obj- else:- realm = obj.realm+ realm = obj.realmcurrent_time = timezone_now()expiry_date = None