From 3a6ad8748828708de75e28cf442bde47df30ce0e Mon Sep 17 00:00:00 2001 From: Injoon Hwang Date: Thu, 16 Mar 2023 03:05:46 +0000 Subject: [PATCH] Add attachments to recent article prefetch --- apps/core/views/viewsets/article.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/core/views/viewsets/article.py b/apps/core/views/viewsets/article.py index 8bf0bbf2..097d3a0b 100644 --- a/apps/core/views/viewsets/article.py +++ b/apps/core/views/viewsets/article.py @@ -357,6 +357,7 @@ def recent(self, request, *args, **kwargs): 'created_by__profile', 'parent_board', 'parent_topic', + 'attachments', ArticleReadLog.prefetch_my_article_read_log(self.request.user) )