Skip to content

Commit

Permalink
fix:Hide asset users from users list page (#2107) (#2113)
Browse files Browse the repository at this point in the history
Co-authored-by: Vignesh Hari <[email protected]>
  • Loading branch information
ayushchauhan12 and vigneshhari authored Sep 22, 2024
1 parent d9f0287 commit 4261fa5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions care/users/api/viewsets/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit 4261fa5

Please sign in to comment.