mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-16 05:06:32 +00:00
Fixes duplicate books in author page when there are mulitple authors
This commit is contained in:
parent
f2b11c6ad1
commit
24bf3f408c
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class Author(View):
|
|||
.filter(default_id=F("id"))
|
||||
.order_by("-first_published_date", "-published_date", "-created_date")
|
||||
.prefetch_related("authors")
|
||||
)
|
||||
).distinct()
|
||||
|
||||
paginated = Paginator(books, PAGE_LENGTH)
|
||||
page = paginated.get_page(request.GET.get("page"))
|
||||
|
|
Loading…
Reference in a new issue