Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
topic: Pass args to select_related call for Message objects.
Sahil Batra7ff5423e2107
diff --git a/zerver/lib/topic.py b/zerver/lib/topic.pyindex da4c0404cc7..4c9506269bc 100644--- a/zerver/lib/topic.py+++ b/zerver/lib/topic.py@@ -160,7 +160,9 @@ def update_messages_for_topic_edit(if propagate_mode == "change_later":propagate_query = propagate_query & Q(id__gt=edited_message.id)- messages = Message.objects.filter(propagate_query).select_related()+ messages = Message.objects.filter(propagate_query).select_related(+ *Message.DEFAULT_SELECT_RELATED+ )update_fields = ["edit_history", "last_edit_time"]