Skip to content

Commit

Permalink
framework: Fix activeUsers API
Browse files Browse the repository at this point in the history
- Fix `User object is not subscriptable` error

This commit is to fix the regression caused by a7050aa
  • Loading branch information
harshithpabbati committed Feb 14, 2020
1 parent a7050aa commit ed1ad27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def resolve_activeUsers(self, info, **kwargs):
sort = kwargs.get('sort')
if sort is None:
sort = 'username'
return User.objects.filter(is_active=True).order_by(sort)
return User.objects.values().filter(is_active=True).order_by(sort)

def resolve_isClubMember(self, info, **kwargs):
user = info.context.user
Expand Down

0 comments on commit ed1ad27

Please sign in to comment.