Merge pull request #2172 from coreos-inc/postgres-missing-groupby
Fix user lookup query under Postgres
This commit is contained in:
commit
4aa23c7dcb
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Reference in a new issue