from __future__ import absolute_import, unicode_literals
from django.contrib.auth.models import User, Group
from rest_framework.viewsets import ReadOnlyModelViewSet
from .serializers import UserSerializer, GroupSerializer


class UserViewSet(ReadOnlyModelViewSet):
    queryset = User.objects.all()
    serializer_class = UserSerializer


class GroupViewSet(ReadOnlyModelViewSet):
    queryset = Group.objects.all()
    serializer_class = GroupSerializer

a2a0c4db2cce39bc3426f3bd6d39957dcb8df655
<mask token>


class GroupViewSet(ReadOnlyModelViewSet):
    queryset = Group.objects.all()
    serializer_class = GroupSerializer

<mask token>


class UserViewSet(ReadOnlyModelViewSet):
    <mask token>
    <mask token>


class GroupViewSet(ReadOnlyModelViewSet):
    queryset = Group.objects.all()
    serializer_class = GroupSerializer

<mask token>


class UserViewSet(ReadOnlyModelViewSet):
    queryset = User.objects.all()
    serializer_class = UserSerializer


class GroupViewSet(ReadOnlyModelViewSet):
    queryset = Group.objects.all()
    serializer_class = GroupSerializer

from __future__ import absolute_import, unicode_literals
from django.contrib.auth.models import User, Group
from rest_framework.viewsets import ReadOnlyModelViewSet
from .serializers import UserSerializer, GroupSerializer


class UserViewSet(ReadOnlyModelViewSet):
    queryset = User.objects.all()
    serializer_class = UserSerializer


class GroupViewSet(ReadOnlyModelViewSet):
    queryset = Group.objects.all()
    serializer_class = GroupSerializer
