backends.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:deux 作者: robinhood 项目源码 文件源码
def extract_body(self, request):
        """
        Extract request body by coercing the request to a Django Rest
        Framework Request.

        :params request: The request to extract the body from.
        :returns: Returns the items in the requests body.
        """
        if not isinstance(request, DRFRequest):
            request = APIView().initialize_request(request)
        # our custom authorization view is already using DRF
        return request.data.items() if request.data else []
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号