From 7ddb27779ec3761cf01a4934ada92f6a29b0fa21 Mon Sep 17 00:00:00 2001 From: Sergey Golitsynskiy Date: Fri, 8 Oct 2021 17:41:55 -0400 Subject: [PATCH] Add back_populates to User/GalaxySession --- lib/tool_shed/webapp/model/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tool_shed/webapp/model/__init__.py b/lib/tool_shed/webapp/model/__init__.py index f44fc390590..c9ba9132776 100644 --- a/lib/tool_shed/webapp/model/__init__.py +++ b/lib/tool_shed/webapp/model/__init__.py @@ -94,7 +94,7 @@ class User(Base, Dictifiable, _HasTable): primaryjoin=(lambda: (Repository.user_id == User.id) & (not_(Repository.deleted))), # type: ignore order_by=lambda: desc(Repository.name)) # type: ignore galaxy_sessions = relationship('GalaxySession', - # back_populates='user', # TODO add back + back_populates='user', order_by=lambda: desc(GalaxySession.update_time)) # type: ignore api_keys = relationship( 'APIKeys',