Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
soft_deactivation: Remove select_related call.
Sahil Batraeda38797338f
diff --git a/zerver/lib/soft_deactivation.py b/zerver/lib/soft_deactivation.pyindex e57f2a4f81a..26b70165922 100644--- a/zerver/lib/soft_deactivation.py+++ b/zerver/lib/soft_deactivation.py@@ -382,7 +382,7 @@ def do_catch_up_soft_deactivated_users(users: Iterable[UserProfile]) -> List[Usedef get_soft_deactivated_users_for_catch_up(filter_kwargs: Any) -> QuerySet[UserProfile]:- users_to_catch_up = UserProfile.objects.select_related().filter(+ users_to_catch_up = UserProfile.objects.filter(long_term_idle=True,is_active=True,is_bot=False,