Fix user lookup query under Postgres
Adds a missing group_by clause
This commit is contained in:
parent
b7aac159ae
commit
730a220eb0
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