From f4297f5d0fad3cc5430167611e4e3e5c1ba4050e Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Wed, 11 Sep 2024 15:46:00 +0100 Subject: [PATCH] Remove declarative mapping from imperatively mapped `LibraryDatasetDatasetAssociation` class See https://github.com/galaxyproject/galaxy/pull/18773#pullrequestreview-2291191572 --- lib/galaxy/model/__init__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index d423c65e1216..aab572045fd4 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -5979,11 +5979,8 @@ def to_dict(self, view="collection"): class LibraryDatasetDatasetAssociation(DatasetInstance, HasName, Serializable): - message: Mapped[Optional[str]] = mapped_column(TrimmedString(255)) - tags: Mapped[List["LibraryDatasetDatasetAssociationTagAssociation"]] = relationship( - order_by=lambda: LibraryDatasetDatasetAssociationTagAssociation.id, - back_populates="library_dataset_dataset_association", - ) + message: Mapped[Optional[str]] + tags: Mapped[List["LibraryDatasetDatasetAssociationTagAssociation"]] def __init__( self,