Skip to content

Commit

Permalink
Join/load: replace strings with attrs (managers.sharable)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Jan 20, 2023
1 parent e77f9bb commit 0e166e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/managers/sharable.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def _query_shared_with(self, user, eagerloads=True, **kwargs):
Return a query for this model already filtered to models shared
with a particular user.
"""
query = self.session().query(self.model_class).join("users_shared_with")
query = self.session().query(self.model_class).join(self.model_class.users_shared_with)
if eagerloads is False:
query = query.enable_eagerloads(False)
# TODO: as filter in FilterParser also
Expand Down

0 comments on commit 0e166e5

Please sign in to comment.