Return Queryset instead of Manager fix

This commit is contained in:
Akita Noek 2016-04-22 13:48:58 -04:00
parent 44a8da83c2
commit c18aa44ced

View File

@ -3573,7 +3573,7 @@ class RoleChildrenList(SubListAPIView):
# XXX: This should be the intersection between the roles of the user
# and the roles that the requesting user has access to see
role = Role.objects.get(pk=self.kwargs['pk'])
return role.children
return role.children.all()