From 646df03d81c89763778e2310f9346deeeb594547 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 20 Dec 2020 11:51:17 -0800 Subject: [PATCH] show books for authors who only have editions --- bookwyrm/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bookwyrm/views.py b/bookwyrm/views.py index c27391cc..8e40f362 100644 --- a/bookwyrm/views.py +++ b/bookwyrm/views.py @@ -684,7 +684,8 @@ def author_page(request, author_id): if is_api_request(request): return JsonResponse(author.to_activity(), encoder=ActivityEncoder) - books = models.Work.objects.filter(authors=author) + books = models.Work.objects.filter( + Q(authors=author) | Q(editions__authors=author)).distinct() data = { 'title': author.name, 'author': author,