mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
soft_deactivation: Remove select_related call.
This commit removes select_related call from get_soft_deactivated_users_for_catch_up as we do not use any related fields for the UserProfile objects fetched using this call.
This commit is contained in:
@@ -382,7 +382,7 @@ def do_catch_up_soft_deactivated_users(users: Iterable[UserProfile]) -> List[Use
|
||||
|
||||
|
||||
def 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,
|
||||
|
||||
Reference in New Issue
Block a user