jumpserver/apps/users/api.py

13 lines
262 B
Python
Raw Normal View History

2016-08-09 09:27:37 +00:00
# ~*~ coding: utf-8 ~*~
2016-08-23 16:11:13 +00:00
#
2016-08-09 09:27:37 +00:00
2016-08-23 16:11:13 +00:00
from rest_framework import viewsets
from .serializers import UserSerializer
from .models import User, UserGroup, Role
class UserViewSet(viewsets.ModelViewSet):
queryset = User.objects.all()
serializer_class = UserSerializer