diff --git a/apps/users/api/user.py b/apps/users/api/user.py index 6ca9bb7a1..97857c436 100644 --- a/apps/users/api/user.py +++ b/apps/users/api/user.py @@ -29,9 +29,7 @@ __all__ = [ class UserViewSet(CommonApiMixin, UserQuerysetMixin, BulkModelViewSet): filter_fields = ('username', 'email', 'name', 'id') search_fields = filter_fields - serializer_classes = { - 'default': serializers.UserSerializer, - } + serializer_class = serializers.UserSerializer permission_classes = (IsOrgAdmin, CanUpdateDeleteUser) def get_queryset(self):