Fix order view arguments

This commit is contained in:
Reckless_Satoshi 2022-01-01 15:06:47 -08:00
parent 1f756fed09
commit 44ddaef23b
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -1,4 +1,4 @@
from rest_framework import generics, status
from rest_framework import status
from rest_framework.views import APIView
from rest_framework.response import Response
@ -10,7 +10,7 @@ from .models import Order
class MakeOrder(APIView):
serializer_class = MakeOrderSerializer
def post(self,request, format=None):
def post(self,request):
serializer = self.serializer_class(data=request.data)
print(serializer)