Add translators to Book serializers

This commit is contained in:
2021-12-10 18:00:02 +03:00
parent 1baae19702
commit 1117e36046
10 changed files with 30 additions and 25 deletions

View File

@@ -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