Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
openapi: Pass required arguments to select_related call.
Sahil Batraa6df3776889b
diff --git a/zerver/openapi/curl_param_value_generators.py b/zerver/openapi/curl_param_value_generators.pyindex 31baec9ccf1..03dba9d259f 100644--- a/zerver/openapi/curl_param_value_generators.py+++ b/zerver/openapi/curl_param_value_generators.py@@ -131,7 +131,7 @@ def add_emoji_to_message() -> Dict[str, object]:emoji_code = "1f419"reaction_type = "unicode_emoji"- message = Message.objects.select_related().get(id=message_id)+ message = Message.objects.select_related(*Message.DEFAULT_SELECT_RELATED).get(id=message_id)do_add_reaction(user_profile, message, emoji_name, emoji_code, reaction_type)return {}