Merge pull request #2172 from coreos-inc/postgres-missing-groupby

Fix user lookup query under Postgres
This commit is contained in:
josephschorr 2016-11-29 15:37:38 -05:00 committed by GitHub
commit 4aa23c7dcb

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: