SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 9a4b1a5d authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Prefetch instead of select related

parent 9ad50b20
No related branches found
No related tags found
No related merge requests found
......@@ -166,7 +166,7 @@ class OrganizationListView(PaginationMixin, ListView):
)
if ordering == "desc":
qs = qs.reverse()
return qs.select_related('logos')
return qs.prefetch_related('logos')
def get_organization_detail(request):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment