groupby-fix-2
This commit is contained in:
parent
a8b8637057
commit
fc3745f07e
|
@ -161,7 +161,7 @@ async def load_shouts_by(_, info, options):
|
|||
q = apply_filters(q, options.get("filters", {}))
|
||||
|
||||
# group
|
||||
q = q.group_by(Shout.id, Author.user, Author.name)
|
||||
q = q.group_by(Shout.id, Author.user, Author.name, Author.slug)
|
||||
|
||||
# order
|
||||
order_by = options.get("order_by", Shout.published_at)
|
||||
|
|
Loading…
Reference in New Issue
Block a user