fixed missing mapping in Comic and type in Rooster
(cherry picked from commit 519c359f94b7e901724c851cc55900448f3f74f4)
This commit is contained in:
@@ -19,7 +19,7 @@ class Publisher(Base):
|
||||
parent_publisher_id: Mapped[Optional[str]] = mapped_column(ForeignKey('publisher.id'))
|
||||
parent_publisher: Mapped[Optional['Publisher']] = relationship(back_populates="imprints", remote_side=[id])
|
||||
imprints: Mapped[List['Publisher']] = relationship(back_populates="parent_publisher")
|
||||
comics = relationship(back_populates="publisher")
|
||||
comics: Mapped[List["Comic"]] = relationship(back_populates="publisher")
|
||||
|
||||
def __repr__(self):
|
||||
return f'Publisher({self.id} {self.name})'
|
||||
|
||||
Reference in New Issue
Block a user