set to list of ids from org - BaseViewSet
This commit is contained in:
@@ -33,7 +33,7 @@ class BaseViewSet(RegionFilterMixin, viewsets.ModelViewSet):
|
||||
queryset = (queryset.filter(organization__in=child_orgs))
|
||||
|
||||
elif model_name == 'organization':
|
||||
queryset = queryset.filter(id__in=child_orgs)
|
||||
queryset = queryset.filter(id__in=[org.id for org in child_orgs])
|
||||
|
||||
return queryset
|
||||
|
||||
|
||||
Reference in New Issue
Block a user