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:
@@ -10,8 +10,8 @@ class MovieGenre(Base):
|
||||
id = Column(Integer, primary_key=True)
|
||||
genre = Column(String, nullable=False, unique=True)
|
||||
|
||||
movies = relationship("Movies", secondary="movie_to_genre",
|
||||
lazy="selectin")
|
||||
movies = relationship("Movie", secondary="movie_to_genre",
|
||||
lazy="selectin", viewonly=True)
|
||||
|
||||
|
||||
class MovieToGenre(Base):
|
||||
|
||||
Reference in New Issue
Block a user