Skip to content
Snippets Groups Projects
Commit 95fd62a8 authored by Roang's avatar Roang
Browse files

Merge branch 'fix/bo-wiki-overview-query' into 'develop'

Add prefetch_related to WikiOverviewView

See merge request hub/hub!1076
parents f98e53ec ade08401
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ class WikiOverviewView(WikiAdminMixin, TemplateView):
def get_context_data(self, **kwargs):
ctx = super().get_context_data(**kwargs)
ctx['last_edits'] = StaticPageRevision.objects.filter(page__conference=self.conference).order_by('-timestamp')
ctx['last_edits'] = StaticPageRevision.objects.filter(page__conference=self.conference).prefetch_related('page', 'author').order_by('-timestamp')
return ctx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment