Browse Source

Refactor: Allow only the user-data fetching

pull/139/head
winkidney 5 years ago
parent
commit
d9b5a78b36
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      core/views.py

+ 1
- 1
core/views.py View File

@@ -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



Loading…
Cancel
Save