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:
@@ -39,5 +39,5 @@ SELECT ARRAY(
|
||||
|
||||
class AuthorTGRMSearchService(TRGMSearchService):
|
||||
MODEL_CLASS = Author
|
||||
PREFETCH_RELATED = ["source", "annotations"]
|
||||
PREFETCH_RELATED = ["source", "annotations", "translators"]
|
||||
GET_OBJECT_IDS_QUERY = GET_OBJECT_IDS_QUERY
|
||||
|
||||
@@ -23,7 +23,7 @@ SELECT ARRAY(
|
||||
|
||||
class BookTGRMSearchService(TRGMSearchService):
|
||||
MODEL_CLASS = BookDB
|
||||
PREFETCH_RELATED = ["source", "authors", "annotations"]
|
||||
PREFETCH_RELATED = ["source", "authors", "translators", "annotations"]
|
||||
GET_OBJECT_IDS_QUERY = GET_OBJECT_IDS_QUERY
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user