Caches query for landing page books

This commit is contained in:
Mouse Reeve
2022-01-09 13:04:41 -08:00
parent e8c830750a
commit 0a182e8150
5 changed files with 21 additions and 22 deletions

View File

@ -16,7 +16,6 @@ from django.views.decorators.http import require_POST
from bookwyrm import emailing, forms, models
from bookwyrm.settings import PAGE_LENGTH
from bookwyrm.views import helpers
# pylint: disable= no-self-use
@ -174,7 +173,6 @@ class InviteRequest(View):
data = {
"request_form": form,
"request_received": received,
"books": helpers.get_landing_books(),
}
return TemplateResponse(request, "landing/landing.html", data)