You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jumpserver/apps/users/api.py

13 lines
262 B

# ~*~ coding: utf-8 ~*~
8 years ago
#
8 years ago
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