Skip to content
This repository was archived by the owner on Mar 22, 2021. It is now read-only.

Commit b4e46c3

Browse files
committed
Fix: Only return active users in the API.
1 parent 13cc44d commit b4e46c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

casters/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
class UserViewSet(viewsets.ReadOnlyModelViewSet):
10-
queryset = User.objects.all()
10+
queryset = User.objects.filter(is_active=True)
1111
serializer_class = UserSerializer
1212

1313
def filter_queryset(self, queryset):

0 commit comments

Comments
 (0)