diff --git a/care/users/api/viewsets/users.py b/care/users/api/viewsets/users.py index f67ce6ac42..6a908ae940 100644 --- a/care/users/api/viewsets/users.py +++ b/care/users/api/viewsets/users.py @@ -107,6 +107,7 @@ class UserViewSet( created_by_user=F("created_by__username"), ) ) + queryset = queryset.filter(Q(asset__isnull=True)) lookup_field = "username" lookup_value_regex = "[^/]+" permission_classes = (