Fix user lookup query under Postgres

Adds a missing group_by clause
This commit is contained in:
Joseph Schorr 2016-11-29 11:36:53 -05:00
parent b7aac159ae
commit 730a220eb0

View file

@ -583,7 +583,7 @@ def get_matching_users(username_prefix, robot_namespace=None, organization=None,
query = (User
.select(User.id, User.username, User.email, User.robot)
.group_by(User.username, User.email, User.robot)
.group_by(User.id, User.username, User.email, User.robot)
.where(direct_user_query))
if organization: