gateway_placeholder/gateway/api/User/view.py

7 lines
246 B
Python
Raw Normal View History

2024-11-30 05:30:54 +00:00
from django.contrib.auth.models import User
from api.User.serializers import UserSerializer
from rest_framework.viewsets import ModelViewSet
class UserViewset(ModelViewSet):
queryset = User.objects.all()
serializer_class = UserSerializer