mirror of
https://github.com/StepanovPlaton/torrent_backend.git
synced 2026-04-03 20:30:38 +04:00
Code refactoring. Add support genres and actors to routes
This commit is contained in:
@@ -11,7 +11,7 @@ class AudiobookGenre(Base):
|
||||
genre = Column(String, nullable=False, unique=True)
|
||||
|
||||
audiobooks = relationship("Audiobook", secondary="audiobook_to_genre",
|
||||
lazy="selectin")
|
||||
lazy="selectin", viewonly=True)
|
||||
|
||||
|
||||
class AudiobookToGenre(Base):
|
||||
|
||||
Reference in New Issue
Block a user