mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 20:21:35 +00:00
Fix order view arguments
This commit is contained in:
parent
1f756fed09
commit
44ddaef23b
@ -1,4 +1,4 @@
|
|||||||
from rest_framework import generics, status
|
from rest_framework import status
|
||||||
from rest_framework.views import APIView
|
from rest_framework.views import APIView
|
||||||
from rest_framework.response import Response
|
from rest_framework.response import Response
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ from .models import Order
|
|||||||
class MakeOrder(APIView):
|
class MakeOrder(APIView):
|
||||||
serializer_class = MakeOrderSerializer
|
serializer_class = MakeOrderSerializer
|
||||||
|
|
||||||
def post(self,request, format=None):
|
def post(self,request):
|
||||||
|
|
||||||
serializer = self.serializer_class(data=request.data)
|
serializer = self.serializer_class(data=request.data)
|
||||||
print(serializer)
|
print(serializer)
|
||||||
|
Loading…
Reference in New Issue
Block a user