Skip to content

Commit

Permalink
fixup! Fix "N+1" query on frontpage
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikhorluck committed Oct 17, 2023
1 parent 987ab5d commit c755b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onlineweb4/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class HomePageView(TemplateView):

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["chunks"] = Chunk.objects.filter(key__startswith="om_")[:21]
context["chunks"] = Chunk.objects.filter(key__startswith="om_")[:25]
return context


Expand Down

0 comments on commit c755b01

Please sign in to comment.