join-cond-2

This commit is contained in:
Untone 2023-12-03 00:39:06 +03:00
parent e2271e38e1
commit 748e3c6db3

View File

@ -135,7 +135,7 @@ async def load_shouts_by(_, info, options):
q = (
select(Shout, Author)
.options(
joinedload(Shout.authors, Shout.authors.contains(Author.id)),
joinedload(Shout.authors,Author.id.in_(Shout.authors)),
joinedload(Shout.topics),
)
.select_from(Shout)