Skip to content

Commit

Permalink
Réduit le nombre de requêtes SQL sur la page /billets/
Browse files Browse the repository at this point in the history
  • Loading branch information
philippemilink committed Apr 15, 2023
1 parent 520f4a6 commit 4ff49bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zds/tutorialv2/views/lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def get_queryset(self):
queryset.prefetch_related("content")
.prefetch_related("content__subcategory")
.prefetch_related("content__authors")
.prefetch_related("content__tags")
.select_related("content__licence")
.select_related("content__image")
.select_related("content__last_note")
Expand Down

0 comments on commit 4ff49bb

Please sign in to comment.