Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
import_utils: Fix wrong usage of model_to_dict.
Zixuan James Li67fda5516f72
diff --git a/zerver/data_import/import_util.py b/zerver/data_import/import_util.pyindex d64473d5aa0..f96071dd6fa 100644--- a/zerver/data_import/import_util.py+++ b/zerver/data_import/import_util.py@@ -81,7 +81,7 @@ def build_zerver_realm(description=f"Organization imported from {other_product}!",)auth_methods = [[flag[0], flag[1]] for flag in realm.authentication_methods]- realm_dict = model_to_dict(realm, exclude="authentication_methods")+ realm_dict = model_to_dict(realm, exclude=["authentication_methods"])realm_dict["authentication_methods"] = auth_methodsreturn [realm_dict]