mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Join/load: replace strings with attrs (webapps...controllers.history)
This commit is contained in:
@@ -208,7 +208,7 @@ class SharedHistoryListGrid(grids.Grid):
|
||||
]
|
||||
|
||||
def build_initial_query(self, trans, **kwargs):
|
||||
return trans.sa_session.query(self.model_class).join("users_shared_with")
|
||||
return trans.sa_session.query(self.model_class).join(self.model_class.users_shared_with)
|
||||
|
||||
def apply_query_filter(self, trans, query, **kwargs):
|
||||
return query.filter(model.HistoryUserShareAssociation.user == trans.user)
|
||||
|
||||
Reference in New Issue
Block a user