视图:
serializer = SaveFileCreateUpdateSerializer(data=request.data, context={'request': self.request})
序列化器
files = self.context.get('request').data.get('file', '')
视图向序列化器传递参数request
最新推荐文章于 2022-11-22 17:30:08 发布
视图:
serializer = SaveFileCreateUpdateSerializer(data=request.data, context={'request': self.request})
序列化器
files = self.context.get('request').data.get('file', '')