Adds shelve buttons to books on author page
This commit is contained in:
@ -29,7 +29,7 @@ class Author(View):
|
||||
).order_by("-edition_rank")
|
||||
|
||||
books = (
|
||||
models.Edition.objects.filter(
|
||||
models.Edition.viewer_aware_objects(request.user).filter(
|
||||
Q(authors=author) | Q(parent_work__authors=author)
|
||||
)
|
||||
.annotate(default_id=Subquery(default_editions.values("id")[:1]))
|
||||
|
Reference in New Issue
Block a user