Ivy-Backend/ivy/accounts/views.py

13 lines
388 B
Python
Raw Normal View History

2023-03-29 14:09:24 +08:00
from rest_framework import viewsets, generics
from .serializers import UserSerializer
from django.contrib.auth.models import User
from rest_framework.permissions import IsAuthenticated
2023-02-28 22:16:45 +08:00
# Create your views here.
2023-03-29 14:09:24 +08:00
class UserListViewSet(generics.ListAPIView):
# permission_classes = [IsAuthenticated]
serializer_class = UserSerializer
queryset = User.objects.all()