Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class UserViewSet(viewsets.ModelViewSet):
- """
- A viewset for viewing and editing user instances.
- """
- serializer_class = UserSerializer
- queryset = User.objects.filter(is_active=1) # See this
Add Comment
Please, Sign In to add comment