📜  django request.data - Python 代码示例

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

代码示例2
...#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]
...