Skip to content

Commit

Permalink
List[CoreRepositoryContent]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwaizer committed Mar 14, 2024
1 parent 835ce8b commit e4fcd47
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions alws/pulp_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class CoreRepository(PulpBase):
)
user_hidden: Mapped[bool] = mapped_column(sqlalchemy.Boolean)

repository_content: Mapped["CoreRepositoryContent"] = relationship(
repository_content: Mapped[List["CoreRepositoryContent"]] = relationship(
"CoreRepositoryContent",
back_populates="repository",
)
Expand Down Expand Up @@ -239,9 +239,11 @@ class CoreContent(PulpBase):
"CoreContentArtifact",
back_populates="content",
)
core_repositorycontent: Mapped["CoreRepositoryContent"] = relationship(
"CoreRepositoryContent",
back_populates="content",
core_repositorycontent: Mapped[List["CoreRepositoryContent"]] = (
relationship(
"CoreRepositoryContent",
back_populates="content",
)
)

@property
Expand Down

0 comments on commit e4fcd47

Please sign in to comment.