from rest_framework import viewsets, generics from .serializers import UserSerializer from django.contrib.auth.models import User from rest_framework.permissions import IsAuthenticated # Create your views here. class UserListViewSet(generics.ListAPIView): # permission_classes = [IsAuthenticated] serializer_class = UserSerializer queryset = User.objects.all()