joinedload-fix
This commit is contained in:
parent
f1ccef7919
commit
e82ca2e385
|
@ -142,7 +142,7 @@ async def load_shouts_by(_, info, options):
|
||||||
q = (
|
q = (
|
||||||
select(Shout, Author)
|
select(Shout, Author)
|
||||||
.options(
|
.options(
|
||||||
joinedload(Shout.authors, Shout.authors.contains(Author.id)),
|
joinedload(Shout.authors).joinedload(Author.id),
|
||||||
joinedload(Shout.topics),
|
joinedload(Shout.topics),
|
||||||
)
|
)
|
||||||
.where(Shout.deleted_at.is_(None))
|
.where(Shout.deleted_at.is_(None))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user