mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-16 21:26:33 +00:00
Prefect related data in author view
This commit is contained in:
parent
de93beca84
commit
14682ed8c6
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class Author(View):
|
|||
)
|
||||
.annotate(default_id=Subquery(default_editions.values("id")[:1]))
|
||||
.filter(default_id=F("id"))
|
||||
)
|
||||
).prefetch_related("authors")
|
||||
|
||||
paginated = Paginator(books, PAGE_LENGTH)
|
||||
page = paginated.get_page(request.GET.get("page"))
|
||||
|
|
Loading…
Reference in a new issue