[Update] 修改serialzier_class

pull/4019/head
ibuler 2020-05-12 15:37:37 +08:00
parent d6debde566
commit dd5bf546df
1 changed files with 1 additions and 3 deletions

View File

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