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

@@ -103,6 +103,7 @@ class BookGenres(ormar.Model):
class BookSequences(ormar.Model):
class Meta(BaseMeta):
tablename = "book_sequences"
orders_by = ["position", ]
id: int = ormar.Integer(primary_key=True, nullable=False) # type: ignore
@@ -112,6 +113,7 @@ class BookSequences(ormar.Model):
class Translation(ormar.Model):
class Meta(BaseMeta):
tablename = "translations"
orders_by = ["position", ]
id: int = ormar.Integer(primary_key=True, nullable=False) # type: ignore