mirror of
https://github.com/pinry/pinry.git
synced 2026-02-26 00:01:04 +01:00
Refactor: Allow only the user-data fetching
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user