Merge pull request #1573 from bookwyrm-social/author-page-fix

Fixes duplicate books in author page when there are multiple authors
This commit is contained in:
Mouse Reeve 2021-10-25 11:32:32 -07:00 committed by GitHub
commit 98cf322eb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"))