Docker compose konfiguratsiyasini yangilandi va xizmatlar uchun yangi buyruqlar qo'shildi.
This commit is contained in:
@@ -1 +1,2 @@
|
||||
from .auth import * # noqa
|
||||
from .user import * # noqa
|
||||
|
||||
9
user/core/apps/accounts/views/user.py
Normal file
9
user/core/apps/accounts/views/user.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from rest_framework.viewsets import GenericViewSet
|
||||
from django.contrib.auth import get_user_model
|
||||
from rest_framework.mixins import RetrieveModelMixin, ListModelMixin
|
||||
from ..serializers import UserSerializer
|
||||
|
||||
|
||||
class UserViewSet(RetrieveModelMixin, ListModelMixin, GenericViewSet):
|
||||
model = get_user_model()
|
||||
serializer_class = UserSerializer
|
||||
Reference in New Issue
Block a user