mirror of https://github.com/snachodog/mybuddy.git
13 lines
304 B
Python
13 lines
304 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.contrib.auth.models import User
|
||
|
from rest_framework import viewsets
|
||
|
|
||
|
from .serializers import (UserSerializer)
|
||
|
|
||
|
|
||
|
class UserViewSet(viewsets.ModelViewSet):
|
||
|
queryset = User.objects.all()
|
||
|
serializer_class = UserSerializer
|