gas-drf/gas_drf/gas/users/api_views.py

12 lines
292 B
Python
Raw Normal View History

2022-03-21 17:48:13 +01:00
from django.contrib.auth.models import User
from rest_framework import viewsets
from gas_drf.mixins import GASAuthMixin
from .serializers import UserSerializer
class UserViewSet(GASAuthMixin, viewsets.ModelViewSet):
serializer_class = UserSerializer
queryset = User.objects.all()