mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-29 11:30:39 +00:00
show books for authors who only have editions
This commit is contained in:
parent
3f95f9257d
commit
646df03d81
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue