Commit a2ebbcaa authored by Glaucia S. Santos's avatar Glaucia S. Santos
Browse files

Filter active users

parent 9a72fc55
......@@ -339,7 +339,7 @@ class UserStatsViewSet(viewsets.ReadOnlyModelViewSet):
queryset = super().get_queryset()
group_id = self.request.query_params.get('group')
queryset = queryset.filter(groups__id=group_id)
queryset = queryset.filter(groups__id=group_id, is_active=True)
return queryset
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment