From 24bf3f408c22efc35bda2b4eace777acde2b89f0 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 25 Oct 2021 11:06:54 -0700 Subject: [PATCH] Fixes duplicate books in author page when there are mulitple authors --- bookwyrm/views/author.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/views/author.py b/bookwyrm/views/author.py index 6c3ee36ff..0c8e3e05a 100644 --- a/bookwyrm/views/author.py +++ b/bookwyrm/views/author.py @@ -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"))