Skip to content

Commit

Permalink
Merge pull request #373 from sparcs-kaist/hotfix/nplus1
Browse files Browse the repository at this point in the history
Add communication_article to prefetch_related
  • Loading branch information
injoonH authored Mar 14, 2023
2 parents 858d4d9 + e32f9eb commit 01d6927
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/core/views/viewsets/article.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def filter_queryset(self, queryset):
)

queryset = queryset.prefetch_related(
'attachments'
'attachments',
'communication_article',
)

# optimizing queryset for list action
Expand Down

0 comments on commit 01d6927

Please sign in to comment.