From 00fe1a4671569efcecbf946e3cf094a55d25d796 Mon Sep 17 00:00:00 2001 From: Dannon Date: Mon, 18 Nov 2024 19:15:57 -0500 Subject: [PATCH] Update lib/galaxy/model/__init__.py Co-authored-by: John Davis --- lib/galaxy/model/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index a49ce90ebf72..cd94a2569b7a 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -2982,7 +2982,7 @@ class ChatExchange(Base, RepresentById): user_id: Mapped[int] = mapped_column(ForeignKey("galaxy_user.id"), index=True, nullable=False) job_id: Mapped[Optional[int]] = mapped_column(ForeignKey("job.id"), index=True, nullable=True) - user: Mapped["User"] = relationship() + user: Mapped["User"] = relationship(back_populates="chat_exchanges") messages: Mapped[List["ChatExchangeMessage"]] = relationship(back_populates="chat_exchange", cascade_backrefs=False) def __init__(self, user, job_id=None, message=None, **kwargs):