diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index 57ca51e3948e..98987d0f2274 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -6892,10 +6892,12 @@ class HistoryDatasetCollectionAssociation( primaryjoin=copied_from_history_dataset_collection_association_id == id, remote_side=[id], uselist=False, + viewonly=True, back_populates="copied_to_history_dataset_collection_association", ) copied_to_history_dataset_collection_association = relationship( "HistoryDatasetCollectionAssociation", + viewonly=True, back_populates="copied_from_history_dataset_collection_association", ) implicit_input_collections: Mapped[List["ImplicitlyCreatedDatasetCollectionInput"]] = relationship(