mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-16 13:16:33 +00:00
Python formatting
This commit is contained in:
parent
14682ed8c6
commit
d706b26ac9
1 changed files with 2 additions and 3 deletions
|
@ -29,9 +29,8 @@ class Author(View):
|
|||
).order_by("-edition_rank")
|
||||
|
||||
books = (
|
||||
models.Edition.viewer_aware_objects(request.user).filter(
|
||||
Q(authors=author) | Q(parent_work__authors=author)
|
||||
)
|
||||
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]))
|
||||
.filter(default_id=F("id"))
|
||||
).prefetch_related("authors")
|
||||
|
|
Loading…
Reference in a new issue