diff --git a/core/views.py b/core/views.py index 3462c75..4cdbcff 100644 --- a/core/views.py +++ b/core/views.py @@ -9,7 +9,7 @@ from core.permissions import IsOwnerOrReadOnly from users.models import User -class UserViewSet(viewsets.ModelViewSet): +class UserViewSet(mixins.RetrieveModelMixin, GenericViewSet): queryset = User.objects.all() serializer_class = api.UserSerializer