mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 15:15:36 +01:00
Add translators to Book serializers
This commit is contained in:
@@ -32,7 +32,7 @@ async def get_sequence(id: int):
|
||||
@sequence_router.get("/{id}/books", response_model=CustomPage[SequenceBook], dependencies=[Depends(Params)])
|
||||
async def get_sequence_books(id: int):
|
||||
return await paginate(
|
||||
BookDB.objects.select_related(["source", "annotations", "authors"])
|
||||
BookDB.objects.select_related(["source", "annotations", "authors", "translators"])
|
||||
.filter(sequences__id=id).order_by("sequences__booksequences__position")
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user