Skip to content

Commit

Permalink
Merge pull request #374 from sparcs-kaist/hotfix/nplus1
Browse files Browse the repository at this point in the history
Add attachments to recent article prefetch
  • Loading branch information
injoonH authored Mar 16, 2023
2 parents 01d6927 + 3a6ad87 commit 828efbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/core/views/viewsets/article.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)

Expand Down

0 comments on commit 828efbf

Please sign in to comment.