text: from rest_framework import generics
  from rest_framework.permissions import IsAuthenticatedOrReadOnly
  from rest_framework.viewsets import ModelViewSet
  from users import models, serializers
  
  
  class UserListView(generics.ListCreateAPIView):
      queryset = models.User.objects.all()
      serializer_class = serializers.UserSerializer
      permission_classes = [IsAuthenticatedOrReadOnly]
  
  
  class UserViewSet(ModelViewSet):
      queryset = models.User.objects.all()
      serializer_class = serializers.UserSerializer
      permission_classes = [IsAuthenticatedOrReadOnly]
  