mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
message: Do not pass "sender__realm" to select_related.
We have modified the code to directly fetch realm from Message object instead of "sender" field and thus we no longer need to fetch "sender__realm" using select_related.
This commit is contained in:
@@ -2989,7 +2989,7 @@ class Message(AbstractMessage):
|
||||
|
||||
search_tsvector = SearchVectorField(null=True)
|
||||
|
||||
DEFAULT_SELECT_RELATED = ["sender", "sender__realm", "realm", "recipient", "sending_client"]
|
||||
DEFAULT_SELECT_RELATED = ["sender", "realm", "recipient", "sending_client"]
|
||||
|
||||
def topic_name(self) -> str:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user