📜  django request.data 示例 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:22.230000             🧑  作者: Mango

代码示例1
...#Your view.py code
    @action(detail=True, methods=['POST'])
      def send_mail(self, request, pk=None):
      email = request.data[0]
      name = request.data[1]
      surname = request.data[2]
...