Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
users: Add `savepoint=False` to avoid creating savepoints.
Prakhar Pratyush86a909e7036c
diff --git a/zerver/actions/users.py b/zerver/actions/users.pyindex 6079a36ffe3..a215030f034 100644--- a/zerver/actions/users.py+++ b/zerver/actions/users.py@@ -486,7 +486,7 @@ def do_deactivate_user(for profile in bot_profiles:do_deactivate_user(profile, _cascade=False, acting_user=acting_user)- with transaction.atomic():+ with transaction.atomic(savepoint=False):if user_profile.realm.is_zephyr_mirror_realm: # nocoverage# For zephyr mirror users, we need to make them a mirror dummy# again; otherwise, other users won't get the correct behavior